Unity Android Application “Unable to load native library” and “Failed to mkdirat” Project Tango

百般思念 提交于 2019-12-21 06:46:18

问题


I have been having issues with an application I am developing on Unity, so to make sure that it wasn't a problem with any of my work I started a new project and only installed the Tango plugin. After following the instructions to create a basic application and run it on my device the application still crashes on start up. Any help is appreciated!

I/ActivityManager(  898): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 pkg=com.test.test cmp=com.test.test/com.google.unity.GoogleUnityActivity} from pid 4198

W/art     (  164): Could not get current activity

I/ActivityManager(  898): Start proc com.test.test for activity com.test.test/com.google.unity.GoogleUnityActivity: pid=4691 uid=10073 gids={50073, 3003, 1028, 1015}

W/FlurryAgent( 4382): Flurry session paused for context:com.mobisystems.files.FileBrowser@64adfb28

E/cutils  (  156): Failed to mkdirat(/storage/sdcard1/Android): Read-only file system

W/Vold    (  156): Returning OperationFailed - no handler for errno 30

W/ContextImpl( 4691): Failed to ensure directory: /storage/sdcard1/Android/obb/com.test.test

E/cutils  (  156): Failed to mkdirat(/storage/sdcard1/Android): Read-only file system

W/Vold    (  156): Returning OperationFailed - no handler for errno 30

W/ContextImpl( 4691): Failed to ensure directory: /storage/sdcard1/Android/data/com.test.test/files

W/NativeActivity( 4691): ANativeActivity_onCreate not found

D/AndroidRuntime( 4691): Shutting down VM

E/AndroidRuntime( 4691): FATAL EXCEPTION: main

E/AndroidRuntime( 4691): Process: com.test.test, PID: 4691

E/AndroidRuntime( 4691): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.test.test/com.google.unity.GoogleUnityActivity}: java.lang.IllegalArgumentException: Unable to load native library: /data/app-lib/com.test.test-1/libmain.so

E/AndroidRuntime( 4691):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2196)

E/AndroidRuntime( 4691):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2246)

E/AndroidRuntime( 4691):    at android.app.ActivityThread.access$800(ActivityThread.java:136)

E/AndroidRuntime( 4691):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1197)

E/AndroidRuntime( 4691):    at android.os.Handler.dispatchMessage(Handler.java:102)

E/AndroidRuntime( 4691):    at android.os.Looper.loop(Looper.java:136)

E/AndroidRuntime( 4691):    at android.app.ActivityThread.main(ActivityThread.java:5030)

E/AndroidRuntime( 4691):    at java.lang.reflect.Method.invoke(Native Method)

E/AndroidRuntime( 4691):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)

E/AndroidRuntime( 4691):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)

E/AndroidRuntime( 4691): Caused by: java.lang.IllegalArgumentException: Unable to load native library: /data/app-lib/com.test.test-1/libmain.so

E/AndroidRuntime( 4691):    at android.app.NativeActivity.onCreate(NativeActivity.java:186)

E/AndroidRuntime( 4691):    at com.google.unity.GoogleUnityActivity.onCreate(GoogleUnityActivity.java:44)

E/AndroidRuntime( 4691):    at android.app.Activity.performCreate(Activity.java:5231)

E/AndroidRuntime( 4691):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)

E/AndroidRuntime( 4691):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2160)

E/AndroidRuntime( 4691):    ... 9 more

W/ActivityManager(  898):   Force finishing activity com.test.test/com.google.unity.GoogleUnityActivity

I/art     (  898): Heap trim of managed (duration=14.793833ms, advised=2MB) and native (duration=3.858334ms, advised=556KB) heaps. Managed heap utilization of 65%.

来源:https://stackoverflow.com/questions/37822590/unity-android-application-unable-to-load-native-library-and-failed-to-mkdirat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!