Java Android应用程序在平板电脑上崩溃
我有一个在手机上运行良好的Android应用程序。我尝试在平板电脑上运行该应用程序 我收到这个信息-Java Android应用程序在平板电脑上崩溃,java,android,android-studio,tablet,Java,Android,Android Studio,Tablet,我有一个在手机上运行良好的Android应用程序。我尝试在平板电脑上运行该应用程序 我收到这个信息- Instant Run does not support deploying build variants with multidex enabled, to a target with API level 20 or below.To use Instant Run with a multidex enabled build variant, deploy to a target with
Instant Run does not support deploying build variants with multidex enabled,
to a target with API level 20 or below.To use Instant Run with a multidex
enabled build variant, deploy to a target with API level 21 or higher.
在构建过程中出现了这个错误
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
com.android.build.api.transform.TransformException: java.util.zip.ZipException:
duplicate entry: android/support/v13/app/FragmentCompatICS.class
因此,我连接了手机,在手机上构建并运行应用程序。它工作得很好。我知道Android Studio生成了apk文件。因此,我将apk文件复制到我的平板电脑上并安装了它,但应用程序在“不幸停止”对话框中崩溃
是什么导致了这次崩溃?我该如何解决它?您的平板电脑上运行的是什么版本的Android?您是否尝试过将目标API设置为21或更高?Tab运行4.4.2,即API 19它不会在rablet上崩溃。它甚至没有被建造。这与平板电脑没有任何关系。这都是关于你的应用程序源(包含重复类)的,你能详细说明一下吗?我不认为我有重复的类,奇怪的是,你可以建立和运行在你的手机上,但不是你的平板电脑。如果它确实是一个重复的类,您可能需要删除任何额外的支持jar-请参阅。您还可以尝试将目标API升级到最新版本。你可以。