android - Crash when calling AAssetManager_fromJava: "JNI WARNING: instance fieldID 0x571819bc not valid" -


It is full Warning:

JNI warning example 0x571819bc not valid for fieldID class Ljava / Lang / Class; (Landroid / content / res / AssetManager;) V (GetIntField)

and backtrace:

  # 00 PC 00045dd0 /system/lib/libdvm.so (dvmAbort + 75) # 01 pc 00,039,819 # 02 /system/lib/libdvm.so PC 0003e96b /system/lib/libdvm.so # 03 pc 000089b9 / system / lib /libandroid.so (AASSetManager_Fremazova + 88) # 04PC 00002f54 / DATA / DATA / COM. Broken Appoint Lloytmplat / Lib / Lib LiveWellPalm template. (Jawa_com_brokentapot_liftaplet_ Jeanai_krete + 128)   

The code because:

Java
  provides public final class LiveWallpaperService Desktopasewa { Static asset manager assetManager; @ Override Public Zero () {assetManager = getAssets (); JNI.onCreate (assetManager); }}   

C ++
  Zero Java_com_brokenteapot_lwtemplate_JNI_onCreate (JNIEnv * env, Job Asset Manager) {ASSAT Manager * pAssetManager = AAssetManager_fromJava (env, assetManager ); }   

I do not know what the warning means or why it is crashing. I'm almost following example from NDK samples. Is this a service that is different?

Uh, I thought it, the method signature was wrong JNI function:

  Zero Java_com_brokenteapot_lwtemplate_JNI_onCreate (JNIEnv * env, jobject assetManager) should have been   

  Zero Java_com_brokenteapot_lwtemplate_JNI_onCreate (JNIEnv * env, void * secure, jobject assetManager)   

I really do not understand why you need some JNI functions void * and nothing ...

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -