當試圖運行或構建我的apk在調試或發佈版本時,我得到一個彈出窗口,說我的apk不能被安裝,因爲它沒有正確簽名。林也越來越與此同時無法運行或建立apk?
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
顯示此錯誤到目前爲止,我有:
卸載有關的一切機器人工作室,SDK,.idea,.iml和.gradle文件
來看,這種
keytool -genkey -v -keystore debug.keystore -alias android -keyalg RSA -keysize 2048 -validity 20000
香港專業教育學院試圖使一個新的密鑰庫
我仍然無法讓它運行調試或發佈。這裏是我的應用程序gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'
repositories {
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
}
android {
signingConfigs {
release {
keyAlias 'myalias'
keyPassword 'mypassword'
storePassword 'mypassword!'
storeFile file('E:/Android/keystore.jks')
}
}
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.intellidev.bitrichpro"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
dexOptions {
javaMaxHeapSize "4g"
preDexLibraries = false
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = []
}
dx.additionalParameters += "--set-max-idx-number=60000" // default 60000
}
}
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'me.grantland:autofittextview:0.2.+'
compile('org.bouncycastle:bcprov-jdk15on:1.48') {
exclude group: 'commons-io', module: 'commons-io'
}
compile('com.google.android.gms:play-services:8.1.0') {
exclude group: 'com.android.support', module: 'support-v4'
}
compile 'com.android.support:design:23.1.0'
compile('com.digits.sdk.android:digits:[email protected]') {
transitive = true;
}
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.orhanobut:dialogplus:[email protected]'
compile 'com.parse.bolts:bolts-android:1.+'
compile 'com.parse:parse-android:1.+'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'me.zhanghai.android.materialprogressbar:library:1.0.2'
compile 'com.android.support:support-v4:23.1.0'
compile 'com.anjlab.android.iab.v3:library:[email protected]'
compile('com.coinbase.android:coinbase-android-sdk:1.0.1')
compile 'com.google.android.gms:play-services-plus:8.1.0'
}
}
dependencies {
}
當你得到失敗[INSTALL_PARSE_FAILED_NO_CERTIFICATES] - 你想從那裏安裝APK什麼? – ligi
即時通訊使用android studio。如果我點擊運行TI只需將調試版本創建到我的手機就會出現該錯誤,並且當我嘗試構建發行版apk時。 –