我昨天更新了Android studio到2.3.1和gradle wrapper到Gradle-3.3-all。更新后,我的应用程序停止正确构建,并不断崩溃后,安装在设备。
04-16 19:37:19.436 ? E/DynamiteModule: Failed to load module descriptor class: Didn't find class "com.google.android.gms.dynamite.descriptors.com.google.firebase.auth.ModuleDescriptor" on path: DexPathList[[zip file "/data/app/tk.swapnilUtilities.myApp-1.apk"],nativeLibraryDirectories=[/data/app-lib/tk.swapnilUtilities.myApp-1, /vendor/lib, /system/lib]]
04-16 19:37:23.620 ? E/CrashlyticsCore: Failed to execute task.
java.util.concurrent.TimeoutException
at java.util.concurrent.FutureTask.get(FutureTask.java:173)
at com.crashlytics.android.core.CrashlyticsBackgroundWorker.submitAndWait(CrashlyticsBackgroundWorker.java:41)
at com.crashlytics.android.core.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:285)
at com.crashlytics.android.core.CrashlyticsController$5.onUncaughtException(CrashlyticsController.java:269)
at com.crashlytics.android.core.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:30)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:693)
at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:690)
at dalvik.system.NativeStart.main(Native Method)
04-16 19:37:23.622 ? E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{tk.swapnilUtilities.myApp/tk.swapnilUtilities.myApp.ui.ScrMainActivity}: java.lang.ClassNotFoundException: Didn't find class "tk.swapnilUtilities.myApp.ui.ScrMainActivity" on path: DexPathList[[zip file "/data/app/tk.swapnilUtilities.myApp-1.apk"],nativeLibraryDirectories=[/data/app-lib/tk.swapnilUtilities.myApp-1, /vendor/lib, /system/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2269)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5371)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "tk.swapnilUtilities.myApp.ui.ScrMainActivity" on path: DexPathList[[zip file "/data/app/tk.swapnilUtilities.myApp-1.apk"],nativeLibraryDirectories=[/data/app-lib/tk.swapnilUtilities.myApp-1, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:53)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.app.Instrumentation.newActivity(Instrumentation.java:1054)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2260)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
at android.app.ActivityThread.access$600(ActivityThread.java:162)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5371)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
at dalvik.system.NativeStart.main(Native Method)
我尝试使用gradlew installMockDebug安装应用程序,但它无法运行。我禁用了即时运行,正如在其他帖子中提到的,但没有帮助。有什么办法可以修好它吗?
编辑:我的build.gradle文件是:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
apply plugin: 'kotlin-android'
android {
compileSdkVersion rootProject.ext.compileSdkVersionValue
buildToolsVersion rootProject.ext.buildToolsVersionValue
defaultConfig {
applicationId "tk.swapnilUtilities"
minSdkVersion 14
targetSdkVersion rootProject.ext.compileSdkVersionValue
versionCode 1
versionName "0.0.1"
// Enabling multidex support.
multiDexEnabled true
resConfigs "en", "hi"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
/*jackOptions {
enabled true
}*/
}
buildTypes {
debug {
testCoverageEnabled = true
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
mock {
}
api {
}
}
dataBinding {
enabled true
}
useLibrary 'org.apache.http.legacy'
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'LICENSE.txt'
}
/*compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}*/
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('org.apache.httpcomponents:httpmime:4.3') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile('org.apache.httpcomponents:httpcore:4.4.1') {
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}
compile rootProject.ext.recyclerview
compile 'com.github.zhaokaiqiang.klog:library:1.1.0'
compile 'com.google.code.gson:gson:2.4'
compile 'commons-io:commons-io:1.3.2'
compile 'com.android.support.test.espresso:espresso-idling-resource:2.2.2'
//Testing
testCompile('junit:junit:4.12', {
exclude group: 'com.android.support', module: 'support-annotations'
})
testCompile 'org.mockito:mockito-core:1.10.19'
// Android runner and rules support
androidTestCompile('com.android.support.test:runner:0.5', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestCompile 'com.android.support.test:rules:0.5'
// Espresso support
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
// add this for intent mocking support
androidTestCompile 'com.android.support.test.espresso:espresso-intents:2.2.2'
androidTestCompile('com.android.support.test.espresso:espresso-contrib:2.0') {
exclude group: 'com.android.support', module: 'appcompat'
exclude group: 'com.android.support', module: 'support-v4'
exclude module: 'recyclerview-v7'
}
testCompile 'org.mockito:mockito-all:1.10.19'
testCompile 'org.powermock:powermock-api-mockito:1.6.2'
// Firebase Authentication
compile 'com.google.firebase:firebase-auth:9.0.2'
compile 'com.google.firebase:firebase-database:9.0.2'
compile 'com.firebaseui:firebase-ui-database:0.4.1'
compile 'com.google.firebase:firebase-storage:9.0.2'
//RX
//compile 'io.reactivex:rxjava:1.0.+'
//compile 'io.reactivex:rxandroid:0.23.+'
//compile 'io.reactivex.rxjava2:rxjava:2.0.7'
/*compile 'io.reactivex.rxjava2:rxandroid:2.0.1'*/
compile rootProject.ext.rxJava
compile rootProject.ext.rxAndroid
// Google Sign In SDK (only required for Google Sign In)
compile 'com.google.android.gms:play-services-auth:9.0.2'
//Kotlin
compile "org.jetbrains.kotlin:kotlin-stdlib:${kotlin_version}"
//compile 'com.firebaseui:firebase-ui-storage:0.6.0'
//compile 'com.firebaseui:firebase-ui-storage:1.0.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile project(':pickphotos')
compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
}
configurations.all {
resolutionStrategy.force rootProject.ext.annotations
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'kotlin-android-extensions'
我最近就面临这个问题。通过Android Studio安装时,该应用程序运行良好。然而,当通过点击apk文件进行安装时(例如,当apk通过电子邮件共享时),应用程序在启动时会崩溃,出现ClassNotFoundException。
通过使用,Build>Build apk构建apk,可以解决这个问题
问题内容: MongoDB刚刚强制将我的Heroku服务器上的更新从2.6更新为3.0 现在,我的应用在启动后不久因以下错误而崩溃: 我检查了他们的状态页,发现Mongo已将其服务器更新为3.0版,而且该更新现在应该稳定了,因此这是我需要做的事情。 在看了一些之后。我发现应该安装新的“驱动程序”以与3.0版兼容。 我发现此链接http://docs.mongodb.org/manual/relea
升级到Flatter 3.0版后,我的项目在第一次运行时崩溃。请参阅下面的日志。求你了,我需要帮助。 在调试模式下在IA模拟器上的AOSP上启动lib/main.dart... ✓内置构建/应用程序/输出/flutter-apk/app-debug.apk. 正在连接ws://127 . 0 . 0 . 1:41249/Xu B1 pru 2 wgq =/ws I/Choreographer(62
我正在为我们的应用程序创建升级路径,在此过程中出现了几个问题。我想,我的配置经常在这种情况下使用,所以也许有人以前经历过。 简短的应用程序描述: JSF Web应用程序 ICE作为JSF框架(实际版本1.8.3最新是3.1) 接缝作为EJB/View之间的连接(实际是2.1.1,最新是2.2.2或3) 在JBoss 4.2.2中部署。GA(最新是7.1) 通过Hibernate/Seam Enti
我不是SSL/TLS专家。但遇到以下情况 我们从一个供应商连接到一个webservice并且“安全策略”是TLSv1,所有的工作都像一个魅力。该供应商将该安全策略升级到TLSV1_2016。 从那时起通信就失败了。当他们重新回滚所有的工作。 这似乎已经足够了。 在AWS上,我发现了以下概述 TLSV1.2支持足以支持SSLv3 TLSV1.0 TLSv1_2016 TLSV1.1_2016 TLS
问题内容: 从Xcode 11.1升级到Xcode 11.2之后,我的应用崩溃了: ***由于未捕获的异常’NSInvalidUnarchiveOperationException’而终止应用程序,原因:’无法实例化名为_UITextLayoutView的类,因为未找到名为_UITextLayoutView的类;该类需要在源代码中定义或从库中链接(确保该类是正确目标的一部分)’ 为什么会这样呢?如
我应该将我的项目log4j升级到log4j2。所以我删除了log4j依赖项并添加了log4j2。一些项目工作良好,但有一个项目出现错误,如下所示: 我使用了mvn dependency:tree命令,试图找到依赖项之间的冲突,并且试图排除可能相关的每个子库,但仍然得到相同的错误。 依赖项: log4j2.properties: