Android spinner在真实设备(Apk)上运行时不显示项目

Android spinner在真实设备(Apk)上运行时不显示项目,android,android-spinner,Android,Android Spinner,当我在android studio emulator或智能手机调试模式下测试我的应用程序时,一切正常 因此,当我生成一个APK文件来分发我的应用程序时,它不会在微调器中显示项目列表,并且我不能选择任何项目 这是我使用微调器布局的一部分 <com.weiwangcn.betterspinner.library.material.MaterialBetterSpinner android:id="@+id/plantType" android:layout_wi

当我在android studio emulator或智能手机调试模式下测试我的应用程序时,一切正常

因此,当我生成一个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" />
这是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 *;
#}

一些建议?

检查许可证如果您正在从存储器将数据加载到spinner中,因为您可能会在较低的API上启动应用程序,并且您的设备的API与emulator不同或更高。

您是否使用任何第三方spinner库?@Nithinlal我正在使用此许可证,当您更新问题时得到它检查此许可证可能会有帮助。我不知道你是如何实现代码微调器的,这样我就可以过滤掉问题。你的程序是什么。这将是proguard问题如果有用户权限,它将与设备和模拟器中的相同,我认为是这样。无论如何,尝试低于21的api级别不需要运行时权限高于21的api级别,您将需要在运行时请求权限问题不关权限,我正在使用正确的方法来管理此问题。
# 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 *;
#}