在这里,我添加了最新的google play服务(com.google.gms:google-services:3.0.0),gradle(com.android.tools.build:gradle:2.2.0-alpha)。我在设备上安装时遇到以下错误。
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
packagingOptions {
exclude 'META-INF/NOTICE' // will not include NOTICE file
exclude 'META-INF/LICENSE' // will not include LICENSE file
exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.properties'
exclude 'META-INF/maven/com.squareup.retrofit/retrofit/pom.xml'
exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.xml'
exclude 'META-INF/maven/com.squareup.okhttp/okhttp/pom.properties'
}
defaultConfig {
applicationId "com.wolfmatrix.navz"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
lintOptions {
abortOnError false
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
}
答案 0 :(得分:1)
错误显示apk签名不正确
试试这个 -
1)从" {WORKSPACE} \ {您的APP文件夹} \ app \ build \ outputs \ apk" 中删除已签名的apk。
2)从设备上卸载您的应用。
3)通过USB调试运行项目以创建app-debug.apk
4)成功构建后,您可以签署您的应用apk以供发布。
希望它会有所帮助:)
<强>更新强>
检查一下 - Installation failed with Android Studio, APK not signed