gpt4 book ai didi

java - 加载 Activity 时出现NoClassDefFoundError

转载 作者:行者123 更新时间:2023-12-03 05:43:15 25 4
gpt4 key购买 nike

在加载我的应用程序时会引发此错误,然后正常显示布局。如何阻止它引发此错误?发生在android 8和android 6。

https://pastebin.com/AyYkdeY0

build.gradle

apply plugin: 'ashcollauthlogin.darkzek.com'

android {
compileSdkVersion 28
defaultConfig {
applicationId "ashcollauthlogin.darkzek.com"
minSdkVersion 18
targetSdkVersion 28
versionCode 2
versionName "2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
buildToolsVersion '27.0.3'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

dependencies {
api 'com.android.support:design:28.0.0-alpha3'
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:customtabs:28.0.0-alpha3'
implementation 'com.android.support.constraint:constraint-layout:1.1.1'
implementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-ads:15.0.1'
implementation 'com.github.navasmdc:MaterialDesign:1.5@aar'
implementation 'com.android.support:appcompat-v7:28.0.0-alpha3'
implementation 'com.android.support:support-v13:28.0.0-alpha3'
}
repositories {
jcenter()
}

SettingsActivity.java:43
setContentView(R.layout.activity_settings);

最佳答案

android {
compileSdkVersion 28
defaultConfig {
applicationId "ashcollauthlogin.darkzek.com"
minSdkVersion 18
targetSdkVersion 28
versionCode 2
versionName "2"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

关于java - 加载 Activity 时出现NoClassDefFoundError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51493410/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com