我在github上下载了一个Android应用程序的zip文件,我正在尝试运行它,但是我收到了一条包含此消息的对话框
app-release-unsigned.apk is not signed. Please configure the signing information for the selected flavor using the Project Structure dialog.
Run Code Online (Sandbox Code Playgroud)
我正在使用Android Studio.我应该做些什么?
我想构建Android应用程序并开始签名.为此,我需要有apk的发布版本.Google文档仅提供了Eclipse和ant方法来发布版本:http://developer.android.com/tools/publishing/app-signing.html#releasecompile
但是我找不到如何强制gradle build release版本的apk.build.gradle也没有提供任何提示.gradlew tasks建议,没有安装Release配置,但存在卸载版本:
Install tasks
-------------
installDebug - Installs the Debug build
installTest - Installs the Test build for the Debug build
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build
uninstallRelease - Uninstalls the Release build
uninstallTest - Uninstalls the Test build for the Debug build
Run Code Online (Sandbox Code Playgroud)
我的build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.5.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
} …Run Code Online (Sandbox Code Playgroud)