02-15 09:57:49.170:d/activitythread (25210): HandleBindApplication:com.poxiao.fish
02-15 09:57:49.170:d/activitythread (25210): settargetheaputilization:0.75
02-15 09:57:49.170:d/activitythread (25210): settargetheapminfree:2097152
02-15 09:57:49.200:e/com.poxiao.fish (25210): Check if the app is visible
02-15 09:57:49.200:e/com.poxiao.fish (25210):---------application visible [Com.poxiao.fish]--------
02-15 09:57:49.200:d/com.poxiao.fish (25210): action=com.poxiao.fish.setting.service.musicplayservice.aidlaction
02-15 09:57:49.210:w/contextimpl (25210): Implicit intents with StartService is not safe:intent {act=com.poxiao.fish.se Tting.service.MusicPlayService.AIDLAction} android.content.contextwrapper.bindservice:542 com.poxiao.fish.fishcatchapplication.bindplayerservice:470 com.poxiao.fish.fishcatchapplication.oncreate:57
02-15 09:57:49.210:I/DALVIKVM (25210): Failed resolving lcom/poxiao/pay/xbll/gamepay$5; Interface 905 ' lcn/cmgame/billing/api/gameinterface$gameexitcallback; '
02-15 09:57:49.210:W/DALVIKVM (25210): Link of Class ' lcom/poxiao/pay/xbll/gamepay$5; ' failed
02-15 09:57:49.210:E/DALVIKVM (25210): Could not find class ' com.poxiao.pay.xbll.gamepay$5 ', referenced from method COM.P Oxiao.pay.xbll.GamePay.exitGame
02-15 09:57:49.210:W/DALVIKVM (25210): vfy:unable to resolve new-instance 1686 (lcom/poxiao/pay/xbll/gamepay$5;) in Lcom /poxiao/pay/xbll/gamepay;
02-15 09:57:49.210:D/DALVIKVM (25210): vfy:replacing opcode 0x22 at 0x0000
02-15 09:57:49.210:I/DALVIKVM (25210): Could not Find Method cn.cmgame.billing.api.GameInterface.isMusicEnabled, Referenced from Method Com.poxiao.pay.xbll.GamePay.getMusicSwitch
02-15 09:57:49.210:W/DALVIKVM (25210): vfy:unable To resolve static method 6300:lcn/cmgame/billing/api/gameinterface;. Ismusicenabled () Z
02-15 09:57:49.210:D/DALVIKVM (25210): vfy:replacing opcode 0x71 at 0x0009
02-15 09:57:49.210:I/DALVIKVM (25210): Could not Find Method Cn.cmgame.billing.api.GameInterface.viewMoreGames, Referenced from Method com.poxiao.pay.xbll.GamePay.moreGame
02-15 09:57:49.210:W/DALVIKVM (25210): vfy:unable To resolve static method 6301:lcn/cmgame/billing/api/gameinterface;. Viewmoregames (landroid/content/context;) V
02-15 09:57:49.210:D/DALVIKVM (25210): vfy:replacing opcode 0x71 at 0x0000
02-15 09:57:49.210:I/DALVIKVM (25210): Failed resolving lcom/poxiao/pay/xbll/gamepay$5; Interface 905 ' lcn/cmgame/billing/api/gameinterface$gameexitcallback; '
02-15 09:57:49.210:W/DALVIKVM (25210): Link of Class ' lcom/poxiao/pay/xbll/gamepay$5; ' failed
02-15 09:57:49.210:D/DALVIKVM (25210): Dexopt:unable to opt direct call 0x2dea at 0x02 in Lcom/poxiao/pay/xbll/gamepay;. Exitgame
02-15 09:57:49.210:w/systemtheme/resources (25210): createsystemthemeifneeded
02-15 09:57:49.210:i/systemthemeresource (25210): Systemthemeresource:set to default Lenovo theme
02-15 09:57:49.420:d/===avos cloud=== (25210): Logutil$avlog->d->24:try to fetch host list
02-15 09:57:49.420:i/com. Poxiao.fish (25210): playerID =
02-15 09:57:49.420:D/DALVIKVM (25210): Trying to load lib/data/app-lib/com.poxiao.fish-1/libmegjb.so 0x42736980
02-15 09:57:49.420:D/DALVIKVM (25210): Added gkfx lib/data/app-lib/com.poxiao.fish-1/libmegjb.so 0x42736980
02-15 09:57:49.460:D/DALVIKVM (25210): Trying to load lib/data/data/com.poxiao.fish/files/libmegbpp_02.02.09_00.so 0x42736980
02-15 09:57:49.460:D/DALVIKVM (25210): Added gkfx lib/data/data/com.poxiao.fish/files/libmegbpp_02.02.09_00.so 0x42736980
02-15 09:57:50.390:v/activity (25210): OnCreate mcomponent:componentinfo{com.poxiao.fish/ Com.poxiao.fish.activity.SplashActivity}; MActivityInfo.parentActivityName:null
02-15 09:57:50.550:E/HWACC (25210): Owner.packagename = Com.skymobi.pay.sprpush; Hardwareaccelerated = False
02-15 09:57:50.560:E/HWACC (25210): Owner.packagename = Com.skymobi.pay.sprpush; Hardwareaccelerated = False
02-15 09:57:50.560:D/DALVIKVM (25210): dexopt:---BEGIN ' com.skymobi.pay.sprpush.apk ' (bootstrap=0)---
02-15 09:57:50.740:D/DALVIKVM (25210): dexopt:---END ' com.skymobi.pay.sprpush.apk ' (success)---
02-15 09:57:50.740:D/DALVIKVM (25210): DEX Prep '/storage/sdcard0/android/data/com.skymobi.push/plugins/ com.skymobi.pay.sprpush.apk ': Unzip in 3ms, rewrite 172ms
02-15 09:57:50.740:d/telephonymanager (25210): Getdeviceidex simid=0
02-15 09:57:50.770:d/telephonymanager (25210): Getdeviceidex simid=0
02-15 09:57:50.770:d/telephonymanager (25210): Getdeviceidex simid=0
02-15 09:57:50.790:E/HWACC (25210): Owner.packagename = Com.skymobi.pay.sprpush; Hardwareaccelerated = False
02-15 09:57:50.800:E/HWACC (25210): Owner.packagename = Com.skymobi.pay.sprpush; Hardwareaccelerated = False
02-15 09:57:50.900:d/androidruntime (25210): Shutting down VM
02-15 09:57:50.900:W/DALVIKVM (25210): Threadid=1:thread exiting with uncaught exception (GROUP=0X41E48D58)
02-15 09:57:50.900:i/switchutil (25210): networktype=1
02-15 09:57:50.910:e/avuncaughtexceptionhandler (25210): Avuncaughtexceptionhandler caught a NoClassDefFoundError exception
02-15 09:57:51.010:i/switchutil (25210): result={"state": "1"}
02-15 09:57:51.020:e/androidruntime (25210): FATAL exception:main
02-15 09:57:51.020:e/androidruntime (25210): Process:com.poxiao.fish, pid:25210
02-15 09:57:51.020:e/androidruntime (25210): Java.lang.NoClassDefFoundError:cn.cmgame.billing.api.GameInterface
02-15 09:57:51.020:e/androidruntime (25210): at Com.poxiao.pay.xbll.GamePay.getMusicSwitch (gamepay.java:214)
02-15 09:57:51.020:e/androidruntime (25210): at Com.poxiao.fish.activity.SplashActivity.onCreate ( SPLASHACTIVITY.JAVA:32)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.Activity.performCreate (activity.java:5246)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.Instrumentation.callActivityOnCreate ( instrumentation.java:1087)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.ActivityThread.performLaunchActivity ( activitythread.java:2175)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.ActivityThread.handleLaunchActivity ( activitythread.java:2261)
02-15 09:57:51.020:e/androidruntime (25210): at android.app.activitythread.access$800 (ActivityThread.java:143)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.activitythread$h.handlemessage (ActivityThread.java : 1212)
02-15 09:57:51.020:e/androidruntime (25210): at Android.os.Handler.dispatchMessage (handler.java:102)
02-15 09:57:51.020:e/androidruntime (25210): at Android.os.Looper.loop (looper.java:136)
02-15 09:57:51.020:e/androidruntime (25210): at Android.app.ActivityThread.main (activitythread.java:5195)
02-15 09:57:51.020:e/androidruntime (25210): at Java.lang.reflect.Method.invokeNative (Native Method)
02-15 09:57:51.020:e/androidruntime (25210): at Java.lang.reflect.Method.invoke (method.java:515)
02-15 09:57:51.020:e/androidruntime (25210): at Com.android.internal.os.zygoteinit$methodandargscaller.run ( zygoteinit.java:787)
02-15 09:57:51.020:e/androidruntime (25210): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:603)
02-15 09:57:51.020:e/androidruntime (25210): at Dalvik.system.NativeStart.main (Native Method)
Workaround
< still have a problem >
Android Dynamic load Jar,apk/dex
When dynamically loading Android jar,apk, and Dex, it is easy to produce the following exceptions:
Java.lang.IllegalAccessError:Class ref in Pre-verified Class resolved to unexpected implementation
This is caused by the repeated loading of the class file.
Check:
Project->properties->java Build Path->order and Export
The introduction of the package is not checked, the introduction of the package is only to allow the project to compile successfully, the introduction of the package will not be packaged into the final program apk.
Since the introduced package is checked in front, the incoming package will eventually be packaged into the final program APK installation package.
If the introduced package does not need to be packaged into the APK, just to compile the pass, remove the tick.
Java.lang.NoClassDefFoundError