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

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

    Could be missing Java JDK, might want to check tha

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

    for my case it was because some sdk licenses were not accepted. i figured it out when i ran the gradlew through the command line. the link below shows you how to accept all the licenses through sdkManager tool.

    You have not accepted the license agreements of the following SDK components

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

    In my case, I haven't installed compileSdkVersion supported SDK.

    eg: If you have mentioned your compileSdkVersion 28. make sure it is installed in your SDK manager. Install it if you don't have it already.

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

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

    Windows - File > settings > Experimental then you have to uncheck - Only sync the active variant.

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

    This happened to me when I got a new laptop and did a fresh install of Android Studio.

    I solved this by installing the proper Android SDK version that my project targets. Only API 29 was installed on my new machine when doing a fresh install of Android Studio, but my project targets API 28.

    Open the SDK manager and download the proper Android SDK for your app and this error should resolve itself.

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

    start Android Studio by "Run as Amdinistrator"

    0 讨论(0)
提交回复
热议问题