我过去曾多次这样做,但有了这个应用程序,就会出现问题.
当我在Crashlytics Studio的插件上传我的应用程序时,没有错误.电子邮件已正确发送给测试人员.
但在安装结束时,它说“软件包似乎已损坏”.
这是我第一次看到这个,我不知道该怎么做.
我尝试使用所有这类APK:
– deBUG(unsigned)
– 释放(未签名)
– 发布(签名)
它都不起作用.
这是我的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:2.6.3@aar') { transitive = true } implementation 'com.mikepenz:fastadapter-commons:2.6.3@aar' implementation 'com.mikepenz:fastadapter-extensions:2.6.3@aar' /** * 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.@R_301_5561@.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:2.6.8@aar') { transitive = true }}
我该如何解决?
解决方法 从AndroID Studio 3.0开始,如果我尝试通过用户界面上传apk,我会遇到完全相同的问题.现在,你必须使用命令行来上传apk,正如documentation所说.
./gradlew assembleDeBUG crashlyticsuploaddistributionDeBUG
我希望这个能帮上忙 !
总结以上是内存溢出为你收集整理的android – Beta by Crashlytics – 软件包似乎已损坏全部内容,希望文章能够帮你解决android – Beta by Crashlytics – 软件包似乎已损坏所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)