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

前端 未结 10 805
情歌与酒
情歌与酒 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: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

提交回复
热议问题