Android-studio 3.4.0-3.4.2 Gradle ERROR: No value has been specified for property 'manifestOutputDirectory'

匆匆过客 提交于 2019-12-03 04:34:25

Click Android Studio->Preperences->Experimental then you have to uncheck - Only sync the active variant.

I just upgraded to AS 3.4 and had the same issue. This occurs when cold starting the application. Build > Make Project works fine, as does building from the command-line.

Disabling Gradle feature "Only sync the active variant" did the trick for me.

In Android Studio: File > Settings > Experimental > Gradle -> uncheck "Only sync the active variant" checkbox.

On clean PC installation I tried every trick here and nothing worked. I noticed there was logged message that licence was not accepted. I opened SDK manager, downloaded some packages that prompted me to accept licence and it started to sync.

Same with @user3407078 answer.

In my case. This is due the Android Studio 3.5 updates, and I haven't installed or accepted the license & agreement for the build tools & SDK platform 29.

Checking the license for package Android SDK Build-Tools 29.0.2 in ~/Library/Android/sdk/licenses
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.
Checking the license for package Android SDK Platform 29 in ~/Library/Android/sdk/licenses
Warning: License for package Android SDK Platform 29 not accepted.

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> No value has been specified for this provider.

In my case the problem was I opted in for incremental option

To solve the problem

open gradle.properties file and remove line

kapt.incremental.apt=true   //remove or comment this line

Could be missing Java JDK, might want to check tha

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!