当我要构建apk时,它会进行测试,提示不幸的是,应用已停止,我尝试更新sdk版本,并尝试在不同的android版本上使用apk,但错误仍然显示
这是gradle构建文件
buildscript {
repositories {
maven { url 'https://plugins.gradle.org/m2/'}
}
dependencies {
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-
plugin:0.12.1'
}
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
repositories {
maven { url 'https://maven.google.com' }
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId 'com.room.work'
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
productFlavors {
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.13-beta-3'
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'com.google.android.material:material:1.1.0-alpha08'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0-beta01'
implementation 'com.balysv:material-ripple:1.0.2'
implementation 'com.google.android.gms:play-services-ads:18.1.0'
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-messaging:19.0.1'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.onesignal:OneSignal:3.10.9'
implementation 'com.google.android.ads.consent:consent-library:1.0.7'
}
apply plugin: 'com.google.gms.google-services'
android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
这是我在模拟器上测试应用程序时在Logcat部分中显示的错误,它显示了很多我无法理解的错误,请帮帮我
07-16 07:57:43.764 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:44.088 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:44.496 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:45.488 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:45.688 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:45.740 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:45.984 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.360 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.396 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.452 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.840 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.908 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:46.960 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.040 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.096 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.152 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.228 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.284 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.364 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.432 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.632 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.748 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.788 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.820 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.864 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:47.904 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.224 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.404 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.444 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.572 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.724 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.760 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.800 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:48.836 155-155/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:52.192 155-538/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:52.496 155-155/? E/MetadataRetrieverClient: failed to extract an album art
07-16 07:57:52.792 155-539/? E/WVMExtractor: Failed to open libwvm.so
07-16 07:57:53.136 155-155/? E/MetadataRetrieverClient: failed to extract an album art
07-16 07:59:52.552 1935-1935/? E/Trace: error opening trace file: No such file or directory (2)
07-16 07:59:52.708 1935-1935/com.room.work E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: /data/app/com.room.work-2.apk
at android.app.ActivityThread.installProvider(ActivityThread.java:4850)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4460)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4400)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5069)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.provider.FirebaseInitProvider" on path: /data/app/com.room.work-2.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.ActivityThread.installProvider(ActivityThread.java:4835)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:4460)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4400)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5069)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)