gpt4 book ai didi

android - 解决Error :(102, 82) error: cannot find symbol class ListCallbackSingleChoice 错误

转载 作者:行者123 更新时间:2023-11-29 01:18:15 25 4
gpt4 key购买 nike

我正在尝试让事情正常进行,以便我最终可以为我开发的应用程序构建 apk,但我面临着这两个错误:

Error:(102, 82) error: cannot find symbol class ListCallbackSingleChoice
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

第一个错误显示在这一行:.itemsCallbackSingleChoice(-1, new MaterialDialog.ListCallbackSingleChoice() {

我现在正在搜索几个小时,但我无能为力。我应该怎么做才能让它发挥作用?提前致谢。

build.gradle:

apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.1"

defaultConfig {
applicationId "com.panaceasoft.citiesdirectory"
minSdkVersion 10
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/android-async-http-1.4.4.jar')
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:cardview-v7:22.2.1'
compile 'com.android.support:recyclerview-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
compile 'com.android.support:palette-v7:22.2.1'
compile 'com.android.support:support-v4:22.2.1'
compile 'com.google.code.gson:gson:2.4'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.pnikosis:materialish-progress:1.5'
compile 'com.google.android.gms:play-services:7.5.0'
repositories {
maven { url "https://jitpack.io" }
}

compile ('com.github.afollestad:material-dialogs:53103863a6') {
transitive = true
}
compile 'com.github.rey5137:material:1.1.1'
compile 'de.hdodenhof:circleimageview:1.3.0'
}

最佳答案

在您的 build.gradle 文件中,尝试替换编译('com.github.afollestad:material-dialogs:53103863a6'){ transitive = true }

compile 'com.afollestad.material-dialogs:core:0.8.6.1'
compile 'com.afollestad.material-dialogs:commons:0.8.6.1'

然后重建您的项目。

关于android - 解决Error :(102, 82) error: cannot find symbol class ListCallbackSingleChoice 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38384157/

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