У меня есть проект, который я сбилдил на андроид. В unity все нормально работает, ошибок нету. Когда тестишь на телефоне из unity - тоже ошибок нету. А вот когда открываешь на телефоне .apk - выдает вот такую ошибку:
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.DefaultCompany.Ninga2D/com.unity3d.player.UnityPlayerNativeActivity}: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerNativeActivity" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/lib/arm, /data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3232)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:7562)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.unity3d.player.UnityPlayerNativeActivity" on path: DexPathList[[zip file "/data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/base.apk"],nativeLibraryDirectories=[/data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/lib/arm, /data/app/com.DefaultCompany.Ninga2D-O_yjuUwdX1LeY4Hzef3zew==/base.apk!/lib/armeabi-v7a, /system/lib, /system/product/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:230)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.AppComponentFactory.instantiateActivity(AppComponentFactory.java:95)
at android.app.Instrumentation.newActivity(Instrumentation.java:1251)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3220)
... 11 more
Как это исправить?