当我在android studio(模拟器或我的智能手机调试模式)中测试我的应用程序时,一切正常。
因此,当我生成一个APK文件来分发我的应用时,它不显示我的微调器内的项目列表,我无法选择任何项目
这是我使用微调器
的布局的一部分<com.weiwangcn.betterspinner.library.material.MaterialBetterSpinner
android:id="@+id/plantType"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:hint="@string/seleziona_plant_type"
app:met_floatingLabel="normal"
android:layout_marginTop="8dp"
app:layout_constraintTop_toBottomOf="@+id/imagePlant"
android:layout_marginLeft="8dp"
app:layout_constraintLeft_toLeftOf="parent"
android:layout_marginRight="8dp"
app:layout_constraintRight_toRightOf="parent" />
这个问题是跨版本设备,它是所有设备的后端
在build.gradle(app)中,我在部分依赖项
上出现此错误dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:design:23.2.1'
compile 'com.google.android.gms:play-services:10.2.0'
compile 'com.koushikdutta.ion:ion:2.1.7'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile ('com.weiwangcn.betterspinner:library-material:1.1.0') {
exclude group: 'com.android.support', module: 'appcompat-v7'
}
compile 'com.google.firebase:firebase-crash:10.0.1'
testCompile 'junit:junit:4.12'
}
这是appcombat-v7库的错误
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 24.0.0, 23.2.1. Examples include com.android.support:animated-vector-drawable:24.0.0 and com.android.support:design:23.2.
这是我的proguard-rules.pro
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /home/claudio/Android/Sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
一些建议?
答案 0 :(得分:0)
检查权限(如果您要将数据从存储中加载到微调器中),因为您可以在较低的API上启动应用,并且您的设备具有与模拟器不同或更高的API。