I can't debug the actual device on Android tablet

Asked 1 years ago, Updated 1 years ago, 58 views

Androidstudio can run it on a smartphone, but I can't run it on a tablet, but I don't know why, so please let me know if you know.

The following error codes

Error: Error converting bytecode to dex:
Cause: java.lang.RuntimeException: Exception parsing classes


Error: 1 error;aborting


Error: Execution failed for task ':app:transformClassesWithDexForDebug'.
>com.android.build.api.transform.TransformException:

android-studio

2022-09-30 15:38

1 Answers

I don't know if I can, but...
Write in build.gradle(mobile) to enable Multidex
Describe MultiDexApplication in AndroidManifest.xml

build.gradle(mobile)

defaultConfig {
  ..
    multiDexEnabled true
}
dependencies {
    ..
   compile'com.android.support:multidex:1.0.0'
 }

AndroidManifest.xml

<application
     ..
    android:name="android.support.multidex.MultiDexApplication">
   ..
</application>


2022-09-30 15:38

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.