Hello! We have made google instant app on defold, but on some devices app crashes on startup with this error:
03-04 13:54:30.288: E/AndroidRuntime(5709): FATAL EXCEPTION: main
03-04 13:54:30.288: E/AndroidRuntime(5709): Process: com.adoregames.coastalhill, PID: 5709
03-04 13:54:30.288: E/AndroidRuntime(5709): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.adoregames.coastalhill/com.dynamo.android.DefoldActivity}: java.lang.ClassCastException: cyh cannot be cast to dalvik.system.BaseDexClassLoader
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2984)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3045)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread.-wrap14(ActivityThread.java)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1642)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.os.Handler.dispatchMessage(Handler.java:102)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.os.Looper.loop(Looper.java:154)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread.main(ActivityThread.java:6776)
03-04 13:54:30.288: E/AndroidRuntime(5709): at java.lang.reflect.Method.invoke(Native Method)
03-04 13:54:30.288: E/AndroidRuntime(5709): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
03-04 13:54:30.288: E/AndroidRuntime(5709): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
03-04 13:54:30.288: E/AndroidRuntime(5709): Caused by: java.lang.ClassCastException: cyh cannot be cast to dalvik.system.BaseDexClassLoader
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.NativeActivity.onCreate(NativeActivity.java:164)
03-04 13:54:30.288: E/AndroidRuntime(5709): at com.dynamo.android.DefoldActivity.onCreate(DefoldActivity.java:205)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.Activity.performCreate(Activity.java:6955)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
03-04 13:54:30.288: E/AndroidRuntime(5709): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
03-04 13:54:30.288: E/AndroidRuntime(5709): … 9 more
03-04 13:54:30.295: E/Isotope(3758): UID: [10236] PID: [3758] IActivityManagerProxy : Instant app: com.adoregames.coastalhill crashed: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.adoregames.coastalhill/com.dynamo.android.DefoldActivity}: java.lang.ClassCastException: cyh cannot be cast to dalvik.system.BaseDexClassLoader
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2984)
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3045)
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread.-wrap14(ActivityThread.java)
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1642)
03-04 13:54:30.295: E/Isotope(3758): at android.os.Handler.dispatchMessage(Handler.java:102)
03-04 13:54:30.295: E/Isotope(3758): at android.os.Looper.loop(Looper.java:154)
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread.main(ActivityThread.java:6776)
03-04 13:54:30.295: E/Isotope(3758): at java.lang.reflect.Method.invoke(Native Method)
03-04 13:54:30.295: E/Isotope(3758): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)
03-04 13:54:30.295: E/Isotope(3758): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)
03-04 13:54:30.295: E/Isotope(3758): Caused by: java.lang.ClassCastException: cyh cannot be cast to dalvik.system.BaseDexClassLoader
03-04 13:54:30.295: E/Isotope(3758): at android.app.NativeActivity.onCreate(NativeActivity.java:164)
03-04 13:54:30.295: E/Isotope(3758): at com.dynamo.android.DefoldActivity.onCreate(DefoldActivity.java:205)
03-04 13:54:30.295: E/Isotope(3758): at android.app.Activity.performCreate(Activity.java:6955)
03-04 13:54:30.295: E/Isotope(3758): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
03-04 13:54:30.295: E/Isotope(3758): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
03-04 13:54:30.295: E/Isotope(3758): … 9 more
AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="{{android.package}}"
android:versionCode="{{android.version_code}}"
android:versionName="{{project.version}}"
android:installLocation="auto"
xmlns:dist="http://schemas.android.com/apk/distribution"
android:targetSandboxVersion="2">
<dist:module dist:instant="true" />
<uses-feature android:required="true" android:glEsVersion="0x00020000" />
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28" />
<application
{{#has-icons?}}
android:icon="@drawable/icon"
{{/has-icons?}}
android:label="{{project.title}}"
android:hasCode="true"
android:name="android.support.multidex.MultiDexApplication">
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity android:name="com.dynamo.android.DefoldActivity"
android:label="{{project.title}}"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="{{orientation-support}}"
android:launchMode="singleTask">
<meta-data android:name="android.app.lib_name"
android:value="{{exe-name}}" />
{{#android.push_field_title}}
<meta-data
android:name="com.defold.push.field_title"
android:value="{{android.push_field_title}}" />
{{/android.push_field_title}}
{{#android.push_field_text}}
<meta-data
android:name="com.defold.push.field_text"
android:value="{{android.push_field_text}}" />
{{/android.push_field_text}}
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="com.android.vending.BILLING" />
<!-- Required to access Google Play Licensing -->
<uses-permission android:name="com.android.vending.CHECK_LICENSE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
</manifest>
<!-- END_INCLUDE(manifest) -->