Android studio 3.0 does not generate signed apk

前端 未结 8 1117
温柔的废话
温柔的废话 2021-02-03 17:53

After updating android studio to version 3.0 (windows), I am unable to generate a signed APK.

When build has completed, i get the message:

Clic

相关标签:
8条回答
  • 2021-02-03 18:25

    I have faced the same problem. After a few hours downgrading

    classpath 'com.android.tools.build:gradle:3.0.0'  
    

    to

    classpath 'com.android.tools.build:gradle:2.3.3'
    

    solved the issue in the build.gradle file.

    0 讨论(0)
  • 2021-02-03 18:30

    Since Android Studio 3.0 update, the apk generated will be in

    {project-folder}/app/release/app-release.apk
    

    Also 1 more file is generated Output.json which holds the apk generation details.

    Sample:

    [  
       {  
          "outputType":{  
             "type":"APK"
          },
          "apkInfo":{  
             "type":"MAIN",
             "splits":[  
    
             ],
             "versionCode":1
          },
          "path":"app-debug.apk",
          "properties":{  
             "packageId":"njscommunity.xxxxx",
             "split":"",
             "minSdkVersion":"19"
          }
       }
    ]
    

    All depends on Gradle build, so at the end it all depends on Gradle version you build with. i.e. Gradle Android plugin for Android Studio.

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