简体   繁体   English

从 Google Play 商店安装应用程序时崩溃

[英]App is crashing when installed from Google Play store

Below is the error下面是错误

FATAL EXCEPTION: main
Process: com.example.myapp, PID: 23564
android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class androidx.coordinatorlayout.widget.CoordinatorLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.coordinatorlayout.widget.CoordinatorLayout" on path: DexPathList[[zip file "/data/app/com.example.myapp-NCewvyoi2h2F2Z1UfLtpjw==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.myapp-NCewvyoi2h2F2Z1UfLtpjw==/lib/arm, /system/lib, /vendor/lib]]

I am using androidx Below is buid.gradle(Module:app)我正在使用androidx下面是buid.gradle(Module:app)

apply plugin: 'com.android.application'
apply plugin: 'io.fabric'


android {
compileSdkVersion 28
defaultConfig {
    applicationId "com.example.myapp"
    minSdkVersion 21
    targetSdkVersion 28
    versionCode 5010002
    versionName "1.0.02-beta"
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {

       shrinkResources true
       minifyEnabled true
       proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
  implementation fileTree(dir: 'libs', include: ['*.jar'])
  implementation 'androidx.appcompat:appcompat:1.0.2'
  implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  testImplementation 'junit:junit:4.12'
  androidTestImplementation 'androidx.test:runner:1.2.0'
  androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

  ///https://github.com/AppIntro/AppIntro
  implementation 'com.github.AppIntro:AppIntro:5.1.0'

  implementation 'com.android.volley:volley:1.1.1'

  implementation 'net.cachapa.expandablelayout:expandablelayout:2.9.2'       
  //https://github.com/cachapa/ExpandableLayout

  implementation 'com.github.krtkush:LinearTimer:v2.1.1'      
  //https://github.com/krtkush/LinearTimer

  implementation 'com.facebook.shimmer:shimmer:0.4.0'   
  //https://github.com/team-supercharge/ShimmerLayout

  implementation 'com.google.firebase:firebase-core:17.1.0'
  implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'

  implementation 'com.github.aabhasr1:OtpView:v1.1.2'   // 
    https://github.com/aabhasr1/OtpView
}

apply plugin: 'com.google.gms.google-services'

App was working fine when I was installing from Android studio.当我从 Android Studio 安装时,应用程序运行良好。 It's crashing after installing from App store从应用商店安装后崩溃

请尝试将以下代码放入您的 Gradle 文件中:

implementation 'androidx.coordinatorlayout:coordinatorlayout:1.0.0'

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

相关问题 从Google Play商店安装后,我自己的应用程序崩溃了 - my own app is crashing after instaling from google play store 从商店安装Xamarin Android应用程序时崩溃 - Xamarin Android app is crashing when installed from the store 应用:从官方Google Play商店安装还是从磁盘安装? - App: installed from official Google Play Store or from disk? 从Google Play商店安装时,Delphi XE6应用程序崩溃 - Delphi XE6 App Crash when installed from Google Play Store PiracyChecker 无法检查应用程序是否从 Google Play 商店安装 - PiracyChecker fails to check whether the app is installed from Google Play Store 从Play商店安装后,为什么我的android应用在启动时崩溃? - Why is my android app crashing on startup after being installed from play store? 如果未安装应用,请启动Google Play商店 - Launch google play store if app is not installed 从Play商店安装应用程序时,Android BroadcastReceiver无法正常工作 - Android BroadcastReceiver not working when app is installed from play store Android:安装APK后从Play商店重定向到Android应用 - Android: Redirect to android app from play store when apk is installed 深层链接 - 从 Play 商店安装应用时获取数据 - Deep linking - Fetch data when app installed from play store
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM