本文介绍了Android studio 3.0 不生成签名的apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 android studio 更新到 3.0 (windows) 版本后,我无法生成已签名的 APK.

构建完成后,我收到消息:

点击定位"进入APP文件夹,但是没有找到APK.

发生了什么变化?

解决方案

Android Studio 3.0更新后,生成的apk会在

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

另外生成 1 个文件 Output.json,其中包含 apk 生成详细信息.

示例:

[{输出类型":{类型":APK"},apk信息":{"类型":"主要",分裂":[],版本代码":1},"path":"app-debug.apk",特性":{"packageId":"njscommunity.xxxxx",分裂":"","minSdkVersion":"19"}}]

一切都取决于 Gradle 构建,所以最终这一切都取决于您构建时使用的 Gradle 版本.即 Android Studio 的 Gradle Android 插件.

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:

Clicking "Locate" brings me to the APP folder, but there is no APK to be found.

What has been changed ?

解决方案

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.

这篇关于Android studio 3.0 不生成签名的apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 11:28