apk 未签名。请使用“项目结构”对话框为所选风格配置签名信息

apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog

我已经查看了两个 SO 线程,none 有一个针对此错误消息的选定答案,因为没有候选答案可以准确解决它。

   apk is not signed. Please configure the signing information for the selected 
   flavor using the Project Structure dialog

我已成功将 debug apk 上传到 Google Play 商店进行 Beta 测试,没有任何问题。

我现在唯一的问题是:我有两个构建变体的 debug 版本。 出于任何原因我需要 release 版本吗?

如果没有,没关系。结案。

不过,如果我确实需要发布版本,我需要帮助。

* 编辑 *

好的。我需要发行版。下面第一个答案中的 link 表示:

(1) Create a keystore. A keystore is a binary file that contains a set of private keys. You must keep your keystore in a safe and secure place.

我了解到,我第一次编译我的应用程序时创建了一个密钥库。继续:

(2) Create a private key. A private key represents the entity to be identified with the app, such as a person or a company.

我该怎么做?

编辑: 要在 Play 商店中拥有两个不同的 APK,您需要为每种风格使用不同的包名称(查看 http://tools.android.com/tech-docs/new-build-system/applicationid-vs-packagename to learn how to achieve this). Each APK should have to be signed separately. There is a good explanation on how to create signing keys in http://developer.android.com/tools/publishing/app-signing.html#studio. After you have two keys you can define them as explained in whosebug.com/questions/17040494/signing-product-flavors-with-gradle

我很久以前就已经成功地使用构建变体上传到 Google Play 商店 (GPS) 'debug' apks 免费和完整版本的应用程序进行 beta 测试。

这不是问题。问题是我是否需要自己努力 生产 'release' apks(如何做尚不清楚)并上传它们。

答案是。我们在 GPS 上发言时,应用程序以每个版本的 'debug' apk 形式出售。所需要的只是 "promoting" 测试版,将它们转移到生产环境中。

* 编辑 *

我可以将两个 apkrelease 版本上传到 GPS,但无法在 AS 1.2.1 中编译它们(因为这个 post).

这是一次意外。好像还可以。