Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dalvikvm: Could not find class 'android.*

Tags:

java

android

enter image description hereAt the time of development,Application on the Android 5 system can be used normally,But in 5 the following system will Application no response .But I don't know what the reason is.The error log is as follows:

E/dalvikvm: Could not find class 'android.app.Application$OnProvideAssistDataListener', referenced from method .App.access$super 
E/dalvikvm: Could not find class 'android.app.Application$OnProvideAssistDataListener', referenced from method .App.access$super 
E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.monkeyPatchExistingResources
E/dalvikvm: Could not find class 'android.util.ArrayMap', referenced from method com.android.tools.fd.runtime.MonkeyPatcher.pruneResourceCache 
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from .ui.module.main.SplashActivity.access$super 
E/dalvikvm: Could not find class 'android.os.PersistableBundle', referenced from method com.zhengjin99.olivefortune.ui.module.main.SplashActivity.access$super 
E/dalvikvm: Could not find class 'android.media.session.MediaController', referenced from method .ui.module.main.SplashActivity.access$super 
E/dalvikvm: Could not find class 'android.widget.Toolbar', referenced from method .ui.module.main.SplashActivity.access$super 
E/dalvikvm: Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method .ui.module.main.SplashActivity.access$super 04-23 
E/dalvikvm: Could not find class 'android.app.SharedElementCallback', referenced from method .ui.module.main.SplashActivity.access$super 
E/dalvikvm: Could not find class 'android.os.PersistableBundle',
CrashHandler.uncaughtException: Ohooo
FATAL EXCEPTION: main java.lang.NoClassDefFoundError:packagename.ui.module.main.AssetAllocationFragment
like image 423
AKid Avatar asked Mar 07 '26 03:03

AKid


1 Answers

I have solved this problem.Because of my fragment in the use of the latest API. View.OnScrollChangeListener()-->API23.So the need to load the SDK version of the judgment.

like image 55
AKid Avatar answered Mar 08 '26 16:03

AKid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!