Question

I can't find the answer to the problem.

I've developed an Android App available on the market. So far few peoeple bought it and it works, but one customer received this error:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.esenthel.rts/android.app.NativeActivity}: java.lang.IllegalArgumentException: Unable to find native library: Project
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1651)
 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1667)
 at android.app.ActivityThread.access$1500(ActivityThread.java:117)
 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:935)
 at android.os.Handler.dispatchMessage(Handler.java:99)
 at android.os.Looper.loop(Looper.java:130)
 at android.app.ActivityThread.main(ActivityThread.java:3687)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:507)
 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
 at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalArgumentException: Unable to find native library: Project
 at android.app.NativeActivity.onCreate(NativeActivity.java:187)
 at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)

It seems as if the app file was not found "Unable to find native library: Project"

The customer says he has ARMV6 CPU. I did compile the app for ARM5 and ARM7. When looking into the APK file, I can confirm I have these files:

lib/armeabi/libProject.so
lib/armeabi-v7a/libProject.so

App was built using latest Android NDK SDK, no Java code inside, only C++. Built manually using Ant (no eclipse involved)

AndroidManifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.esenthel.rts" android:versionCode="2" android:versionName="2">
   <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="14"/>
   <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
   <uses-permission android:name="android.permission.INTERNET"/>
   <uses-permission android:name="android.permission.GET_ACCOUNTS"/>
   <uses-feature android:glEsVersion="0x00020000"/>
   <application android:label="Esenthel RTS" android:hasCode="false" android:debuggable="false" android:icon="@drawable/icon">
      <activity android:name="android.app.NativeActivity" android:label="Esenthel RTS" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:screenOrientation="fullSensor" android:configChanges="orientation">
         <meta-data android:name="android.app.lib_name" android:value="Project"/>
         <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
         </intent-filter>
      </activity>
   </application>
</manifest>

The app in question is here https://play.google.com/store/apps/details?id=com.esenthel.rts

Let me repeat again, the app works on ARM7 - Asus Transformer Prime, Htc Evo 3D, Sony Ericsson Xperia Neo, Samsung Galaxy Tab 10.1

But fails to start on unknown ARM6 CPU

Was it helpful?

Solution

Problem was "low internal memory" on the customer device, after he free'd up room, app started working.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top