我知道多次问过同一问题,但是我还没有找到解决方法。 Android Studio上周进行了一些重大更新。 build.gradle文件中的某些功能已被替换。例如,现在可以执行编译。在更新之前,我遇到了与现在相同的错误(在更新设置后,我刚刚提到过)。我知道我的编程是可以的,如何解决我的错误。我已经尝试了stackoverflow中的几乎所有内容,但没有任何反应。请注意,我的构建gradle工具是最新的。
调试错误:
java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "co.quindio.sena.navigationdrawerejemplo"
minSdkVersion 15
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation 'com.google.android.gms:play-services-maps:15.0.1'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation 'com.android.support:appcompat-v7:25.3.1'
implementation 'com.android.support:design:25.3.1'
implementation 'com.android.support:support-v4:25.3.1'
implementation 'com.android.support:recyclerview-v7:25.3.1'
implementation files('libs/GenAsync.1.2.jar')
implementation files('libs/MD5Simply.jar')
implementation 'com.android.volley:volley:1.0.0'
implementation 'com.android.support:cardview-v7:25.3.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.android.gms:play-services:11.0.1'
implementation 'me.biubiubiu.justifytext:library:1.1'
implementation 'com.master.android:glideimageview:1.0'
testImplementation 'junit:junit:4.12'
}