【发布时间】:2016-06-25 19:33:39
【问题描述】:
为什么ListPopupWindow 和Dialog 没有实质性外观,即使我的成绩文件中有这个:
android {
compileSdkVersion 24
buildToolsVersion "24"
defaultConfig {
applicationId "com.example.test"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1c"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'com.android.support:support-v4:24.0.0'
我尝试了不同版本的构建工具等,但没有成功。
这是AlertDialog 的样子:
【问题讨论】:
-
那么您创建
AlertDialog的代码在哪里?您对AlertDialog使用的导入是什么? -
@ianhanniballake 对于
AlertDialog我使用import android.app.AlertDialog -
@ianhanniballake 我找到了我的错误所在。谢谢兄弟,你帮了我很多。
-
@Chaos 请为未来的读者发布解决方案。
-
@frozenkoi 我接受了正确的答案,希望它能帮助所有和我有同样问题的人..
标签: android android-studio gradle android-gradle-plugin material-design