我最近爲一個客戶開發了一個應用程序,現在必須在Crashlytics上共享一個Beta版本。 我在過去做了很多次,但有了這個應用程序,有一個問題。Beta by Crashlytics - Package似乎已損壞
當我上傳我的應用程序在Crashlytics Studio的插件時,沒有錯誤。該電子郵件已正確傳送給測試人員。
但是在安裝結束時,它說「包似乎已損壞」。
這是我第一次看到這個,我不知道該怎麼做。
我嘗試了所有這種類型的APK的: - 調試(簽名) - 釋放(無符號) - 釋放(簽字)
無的它的工作原理。
這裏是我的build.gradle:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
// These docs use an open ended version so that our plugin
// can be updated quickly in response to Android tooling updates
// We recommend changing it to the latest version from our changelog:
// https://docs.fabric.io/android/changelog.html#fabric-gradle-plugin
classpath 'io.fabric.tools:gradle:1.24.1'
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.xxxxxxx"
minSdkVersion 15
targetSdkVersion 26
versionCode 3
versionName "0.1.3"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
renderscriptSupportModeEnabled = true
}
buildTypes {
release {
minifyEnabled = true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
/**
* SUPPORT LIBS
*/
implementation 'com.android.support:appcompat-v7:26.0.2'
implementation 'com.android.support:recyclerview-v7:26.0.2'
implementation 'com.android.support:design:26.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-vector-drawable:26.0.2'
/**
* KOTLIN
*/
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
/**
* UNIT TESTS
*/
testImplementation 'junit:junit:4.12'
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', {
exclude group: 'com.android.support', module: 'support-annotations'
})
/**
* HTTP
*/
implementation 'com.squareup.retrofit2:retrofit:2.3.0'
implementation "com.squareup.retrofit2:converter-gson:2.3.0"
implementation "com.squareup.retrofit2:adapter-rxjava:2.3.0"
implementation 'com.squareup.okhttp3:logging-interceptor:3.8.0'
/**
* INJECTION LIB
*/
implementation 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
/**
* COMPONENT LIBS
*/
implementation('com.mikepenz:fastadapter:[email protected]') {
transitive = true
}
implementation 'com.mikepenz:fastadapter-commons:[email protected]'
implementation 'com.mikepenz:fastadapter-extensions:[email protected]'
/**
* IMAGE LOADING/CACHING/EDITING LIBS
*/
implementation 'com.github.bumptech.glide:glide:4.1.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.1.1'
implementation 'com.makeramen:roundedimageview:2.3.0'
/**
* PLAYERS VIDEO/MUSIC
*/
implementation 'com.google.android.exoplayer:exoplayer:r2.0.0'
implementation 'com.dailymotion.dailymotion-sdk-android:sdk:0.1.12'
/**
* EVENTBUS
*/
implementation 'org.greenrobot:eventbus:3.0.0'
/**
* Overscroll
*/
implementation 'com.scwang.smartrefresh:SmartRefreshLayout:1.0.3'
implementation 'com.scwang.smartrefresh:SmartRefreshHeader:1.0.3'
/**
* FABRIC/CRASHLYTICS
*/
implementation('com.crashlytics.sdk.android:crashlytics:[email protected]') {
transitive = true
}
}
我怎樣才能解決呢?
你有沒有嘗試在你的Manifest中添加android:extractNativeLibs =「false」? –
謝謝你的回答,我只是嘗試過,仍然有同樣的錯誤... –
邁克從面料這裏。你試圖安裝應用程序時看到的Logcat輸出是什麼? –