3

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
5
  • 1
    There's no need to delete and repost your question if you make a mistake. There's an edit link below the tags under your question. Commented Apr 23, 2016 at 15:49
  • 1
    These are perfectly normal. They represent classes that are conditionally referred to from your code, but do not exist on the Android device or emulator, because they were introduced in newer versions of Android. ArrayMap, for example, was added in API Level 19 (Android 4.4). These messages do not represent a "collapse". Commented Apr 23, 2016 at 15:49
  • @CommonsWare so is that a problem for the device the app is running on? Commented May 24, 2016 at 12:35
  • @AkashAggarwal: As I noted, these are perfectly normal. The only place where there would be a problem is if you tried executing code that depended upon these missing classes or methods, and then you will get a regular Java stack trace. Commented May 24, 2016 at 12:45
  • @CommonsWare thanks for clearing it out Commented May 24, 2016 at 13:02

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

1 Comment

You should mention, how you got to this solution so that others with the same error have a hint on how to tackle this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.