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

前端 未结 10 612
情歌与酒
情歌与酒 2021-02-01 13:57

when upgrading to android-studio 3.4.x/gradle build plugin 3.4.x /gradle 5.3 ... wondering if its an issue with the android plugin.

ERROR: No value has been spe         


        
相关标签:
10条回答
  • 2021-02-01 14:26

    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
    
    0 讨论(0)
  • 2021-02-01 14:28

    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.

    0 讨论(0)
  • 2021-02-01 14:28

    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.

    0 讨论(0)
  • 2021-02-01 14:31

    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.
    

    It is recommended to update the latest SDK tools & platform, in this case, version 29. Even we only develop the lower version, it is mandatory step to get working on your Android Studio.

    EDITED:

    1. In a rare case, you might wanna also disable Gradle feature here thx @waqas-khalid-obeidy
    2. Or if you're using a gradlew command-line task, please navigate here for the full explanation. thx @amir-ziarati
    0 讨论(0)
提交回复
热议问题