简体   繁体   English

我的android应用程序在android studio中以调试模式正常工作,但是当我从Google Playstore安装时无法正常工作

[英]My android app is working properly in debug mode in android studio but not working when i install from google playstore

Can anybody help me in proguard-rules.pro, Yesterday my app was working fine when i downloaded from google playstore. 有人可以在proguard-rules.pro中帮助我吗?昨天,当我从Google Playstore下载时,我的应用程序运行正常。 but when i updated my app with proguard-rules my app crashes when i download from google play store. 但是,当我使用proguard-rules更新我的应用程序时,当我从Google Play商店下载时,我的应用程序崩溃了。 but runs perfectly when i run from android studio in debug mode. 但是当我以调试模式从android studio运行时运行完美。

I have currently updated my proguard-rules.pro 我目前更新了我的proguard-rules.pro

    -keep class com.squareup.okhttp.** { *; }
    -keep class retrofit.** { *; }
    -keep interface com.squareup.okhttp.** { *; }

    -dontwarn com.squareup.okhttp.** 
    -dontwarn okio.**
    -dontwarn retrofit.**
    -dontwarn rx.**
    -dontwarn okio.**
    -dontwarn retrofit2.**
    -keepclasseswithmembers class * {
    @retrofit.http.* <methods>;
    }

and I have these many libraries in my gradle file 我的gradle文件中有很多库

compile "com.android.support:support-v4:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:appcompat-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:recyclerview-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:cardview-v7:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:design:$SUPPORT_LIBRARY_VERSION"
compile "com.android.support:support-annotations:$SUPPORT_LIBRARY_VERSION"

compile "com.squareup.retrofit2:retrofit:$RETROFIT_VERSION"
compile "com.squareup.retrofit2:converter-gson:$RETROFIT_VERSION"
compile "com.squareup.retrofit2:adapter-rxjava:$RETROFIT_VERSION"
compile "com.squareup.okhttp3:okhttp:$OKHTTP_VERSION"
compile "com.squareup.okhttp3:logging-interceptor:$OKHTTP_VERSION"

compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.3.0'
compile 'com.jakewharton.timber:timber:4.1.1'

compile "com.jakewharton:butterknife:$BUTTERKNIFE_VERSION"
annotationProcessor "com.jakewharton:butterknife-compiler:$BUTTERKNIFE_VERSION"

compile "com.google.dagger:dagger:$DAGGER_VERSION"
annotationProcessor "com.google.dagger:dagger-compiler:$DAGGER_VERSION"
provided 'javax.annotation:jsr250-api:1.0'
compile 'javax.inject:javax.inject:1'

implementation("com.mikepenz:materialdrawer:6.0.6@aar") {
    transitive = true
}

compile 'com.github.javiersantos:AppUpdater:2.0.2'
compile 'com.thoughtbot:expandablerecyclerview:1.0'

implementation 'com.github.bumptech.glide:glide:4.3.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.3.1'

compile 'com.onesignal:OneSignal:[3.7.1, 3.99.99]'

compile 'com.squareup.picasso:picasso:2.3.2'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
compile('com.crashlytics.sdk.android:crashlytics:2.9.1@aar') {
    transitive = true;
}

But I am getting an error and I really don't know what is happening 但是我遇到错误,我真的不知道发生了什么

java.lang.IllegalStateException: 
at f.d.c.g.run (Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:428)
at java.util.concurrent.FutureTask.run (FutureTask.java:237)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
at java.lang.Thread.run (Thread.java:762)
Caused by: java.lang.InternalError: 
at f.d.e.b.y.a (Unknown Source)
at f.d.e.b.r.<clinit> (Unknown Source)
at f.d.a.n$a.<init> (Unknown Source)
at f.d.a.n.a (Unknown Source)
at f.d.a.n.a (Unknown Source)
at f.d.a.f.a (Unknown Source)
at f.d.a.f.a (Unknown Source)
at f.e.a (Unknown Source)
at f.d.a.p$a.a (Unknown Source)
at f.d.c.a$b$1.a (Unknown Source)
Caused by: java.lang.NoSuchFieldException: 
at java.lang.Class.getDeclaredField (Native Method)

My gradle (app) 我的gradle(应用程式)

    minSdkVersion 16
    targetSdkVersion 26
    versionCode 9
    versionName "1.6"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    javaCompileOptions {
        annotationProcessorOptions {
            includeCompileClasspath false
        }
    }

}
buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

来自Google Play控制台的图片。

It's difficut to find the error with abcdef. abcdef.查找错误很abcdef.

By default, in AndroidStudio 3 , when you build a released application, there is a mapping file which helps any analysis service like FirebaseAnalysis or Crashlytic can detect where the error is and give you as much context and detail as possible when runtime exceptions occur. 默认情况下,在AndroidStudio 3 ,当您构建发布的应用程序时,会提供一个映射文件,该文件可帮助诸如FirebaseAnalysisCrashlytic类的任何分析服务检测错误的位置,并在发生运行时异常时为您提供尽可能多的上下文和详细信息。

Upload the mapping file which located at build/outputs/mapping/release/mapping.txt to Proguard Deobfuscation in your Google Play Console . 将位于build/outputs/mapping/release/mapping.txt的映射文件上传到您的Google Play Console Proguard Deobfuscation。 Then track the error again. 然后再次跟踪错误。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android HttpURLConnection在调试模式下运行,但在Playstore上发布时则无法运行 - Android HttpURLConnection working in debug mode, but not when released on the playstore 从 android studio 安装时一切正常,从 Playstore 安装时结果相同,但 PDF 的一项活动不起作用 - Everything works fine when install from android studio and same results when i install from playstore except one activity with PDF is not working 从Playstore下载Google+登录名后,在我的Android应用程序中无法正常运行 - Google+ login is not working in my android application when i download it from playstore Android 应用程序在调试模式下工作,但在安装时不工作 - Android app working in debug mode but not when installed 从 Playstore 下载时,我的 Android 应用程序崩溃,但是当我将它从 Android Studio 运行到任何设备时,它可以正常工作 - My Android App is crashing when downloaded from the Playstore but when I run it from Android Studio into any device it works normally Android:“ ant emma调试安装”无法正常工作 - Android: “ant emma debug install” not working properly Android Studio:App从Google Maps打开时停止工作 - Android Studio:App stops working when google maps is opened from it 仅当我从Android Studio中安装Android应用程序时,该应用程序才能运行,而当我直接在其他手机上安装APK时,则无法运行 - Android app is working only when I installed it from Android Studio But not when I install the APK directly on other phones 当我尝试在Android Studio上启动时,我的应用程序停止工作 - my app stops working when i try to start on android studio 应用程式停止使用已签署的APK Playstore版本,但可以从Android Studio编译的版本开始运作 - App stops working with signed APK playstore version but does work from the compiled one from Android Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM