Android java.lang.illegalargumentexception unable to find native library main -
i need help. struggling bug sometime. help.
do let me know if need more information.
i developing game custom android activities. created sample project , changed source code handle custom android activity. got compile , build app properly, when run it, error message. log cat has following error message:
6-08 14:15:37.548 14319 14319 w linker : /data/app/com.mytestcompany.puzzle-1/lib/arm/libue4.so: missing dt_soname use basename replacement: "libue4.so" 06-08 14:15:37.720 3751 6317 d audio_hw_primary: disable_audio_route: reset , update mixer path: low-latency-playback 06-08 14:15:37.721 3751 6317 d audio_hw_primary: disable_snd_device: snd_device(2: speaker) 06-08 14:15:37.734 3751 6317 d audio_hw_primary: disable_snd_device: snd_device(71: vi-feedback) 06-08 14:15:37.735 3751 6317 d audio_hw_primary: disable_audio_route: reset , update mixer path: spkr-vi-record 06-08 14:15:37.737 3751 6317 soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 event 0 06-08 14:15:38.194 14319 14319 d ue4 : in jni_onload function 06-08 14:15:38.202 14319 14319 d ue4 : path found '/storage/emulated/0' 06-08 14:15:38.204 14319 14319 d ue4 : font path found '/system/fonts/' 06-08 14:15:38.204 14319 14319 d ue4 : in jni_onload function 5 06-08 14:15:38.224 14319 14319 d androidruntime: shutting down vm 06-08 14:15:38.240 14319 14319 e androidruntime: fatal exception: main 06-08 14:15:38.240 14319 14319 e androidruntime: process: com.mytestcompany.puzzle, pid: 14319 06-08 14:15:38.240 14319 14319 e androidruntime: java.lang.runtimeexception: unable start activity componentinfo{com.mytestcompany.puzzle/com.epicgames.ue4.gameactivity}: java.lang.illegalargumentexception: unable find native library: main 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread.performlaunchactivity(activitythread.java:2416) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread.handlelaunchactivity(activitythread.java:2476) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread.-wrap11(activitythread.java) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread$h.handlemessage(activitythread.java:1344) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.os.handler.dispatchmessage(handler.java:102) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.os.looper.loop(looper.java:148) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread.main(activitythread.java:5422) 06-08 14:15:38.240 14319 14319 e androidruntime: @ java.lang.reflect.method.invoke(native method) 06-08 14:15:38.240 14319 14319 e androidruntime: @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:726) 06-08 14:15:38.240 14319 14319 e androidruntime: @ com.android.internal.os.zygoteinit.main(zygoteinit.java:616) 06-08 14:15:38.240 14319 14319 e androidruntime: caused by: java.lang.illegalargumentexception: unable find native library: main 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.nativeactivity.oncreate(nativeactivity.java:170) 06-08 14:15:38.240 14319 14319 e androidruntime: @ com.epicgames.ue4.gameactivity.oncreate(gameactivity.java:266) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activity.performcreate(activity.java:6251) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1107) 06-08 14:15:38.240 14319 14319 e androidruntime: @ android.app.activitythread.performlaunchactivity(activitythread.java:2369) 06-08 14:15:38.240 14319 14319 e androidruntime: ... 9 more
here app manifest:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com" android:versioncode="1" android:versionname="1.0"> <!-- application definition --> <application android:label="@string/app_name" android:icon="@drawable/icon" android:hascode="true"> <activity android:name="com.epicgames.ue4.splashactivity" android:label="@string/app_name" android:theme="@style/ue4splashtheme" android:launchmode="singletask" android:screenorientation="landscape" android:debuggable="true"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="com.hazardnetworking.unrealandroidtest2.mainactivity" android:label="@string/app_name" android:theme="@style/apptheme" android:configchanges="screensize|orientation|keyboardhidden|keyboard" android:launchmode="singletask" android:screenorientation="landscape" android:debuggable="true"> <meta-data android:name="android.app.lib_name" android:value="ue4" /> </activity> <activity android:name="com.epicgames.ue4.gameactivity" android:label="@string/app_name" android:theme="@style/ue4splashtheme" android:configchanges="screensize|orientation|keyboardhidden|keyboard"> </activity> <activity android:name=".downloaderactivity" android:screenorientation="landscape" android:configchanges="screensize|orientation|keyboardhidden|keyboard" android:theme="@style/ue4splashtheme" /> <meta-data android:name="com.epicgames.ue4.gameactivity.depthbufferpreference" android:value="0" /> <meta-data android:name="com.epicgames.ue4.gameactivity.bpackagedatainsideapk" android:value="false" /> <meta-data android:name="com.epicgames.ue4.gameactivity.bverifyobbonstartup" android:value="false" /> <meta-data android:name="com.epicgames.ue4.gameactivity.bshouldhideui" android:value="false" /> <meta-data android:name="com.epicgames.ue4.gameactivity.projectname" android:value="puzzletestproject2" /> <meta-data android:name="com.epicgames.ue4.gameactivity.bhasobbfiles" android:value="false" /> <meta-data android:name="com.google.android.gms.games.app_id" android:value="@string/app_id" /> <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" /> <activity android:name="com.google.android.gms.ads.adactivity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize" /> <service android:name="obbdownloaderservice" /> <receiver android:name="alarmreceiver" /> </application> <!-- requirements --> <uses-sdk android:minsdkversion="14" android:targetsdkversion="21" /> <uses-feature android:glesversion="0x00020000" android:required="true" /> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.write_external_storage" /> <uses-permission android:name="android.permission.access_network_state" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.read_phone_state" /> <uses-permission android:name="com.android.vending.check_license" /> <uses-permission android:name="android.permission.access_wifi_state" /> <uses-permission android:name="android.permission.modify_audio_settings" /> <uses-permission android:name="android.permission.get_accounts" /> <uses-permission android:name="android.permission.vibrate" /> <uses-permission android:name="android.permission.read_profile" /> <uses-permission android:name="android.permission.read_contacts" /> </manifest>
thanks looking
your meta-data wrong: main default native library name if not specified in manifest, see https://developer.android.com/reference/android/app/nativeactivity.html
or maybe derived activity ignores manifest. nativeactivity not built extended, should extra-careful.
Comments
Post a Comment