Quantcast
Viewing all articles
Browse latest Browse all 2010

Adobe AIR ANE Android NoClasseDefFoundError

I am developing ananeforusing and enjoying theservicegamesgoogleplay.
I made atestappnativelyand runsperfectly.
I generatedoneaneand made afalshbuilderfortest.Byutilizing ithappensthe following error:


07-22 15:55:35.555: E/AndroidRuntime(9983): FATAL EXCEPTION: main

07-22 15:55:35.555: E/AndroidRuntime(9983): java.lang.NoClassDefFoundError: com.google.example.games.basegameutils.GameHelper

07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.basegameutils.BaseGameActivity.getGameHelper(BaseGameActivity.ja va:93)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.basegameutils.BaseGameActivity.onCreate(BaseGameActivity.java:10 3)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.google.example.games.tanc.MainActivity.onCreate(MainActivity.java:70)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.Activity.performCreate(Activity.java:5248)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.access$800(ActivityThread.java:139)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.os.Handler.dispatchMessage(Handler.java:102)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.os.Looper.loop(Looper.java:136)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at android.app.ActivityThread.main(ActivityThread.java:5086)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at java.lang.reflect.Method.invokeNative(Native Method)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at java.lang.reflect.Method.invoke(Method.java:515)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)

07-22 15:55:35.555: E/AndroidRuntime(9983):     at dalvik.system.NativeStart.main(Native Method)

 

I lookedin the package andthe classitappears. I found thefollowing solution, but does not work.
NoClassDefFoundError for code in an Java library on Android - Stack Overflow
"

  1. Go to "Properties" of the project.
  2. Select "Java Build Path"
  3. Select "Order and Export" Tab
  4. You should see the selected project's "src" and "gen" paths and dependencies here.
  5. The order how they listed were first "src" and then "gen" path
  6. I switch them, so that "gen" folder is build before the "src"

"

Thank you


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>