You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
08-08 11:33:26.681 17300-17321/com.pandaabc.stu E/AndroidRuntime: FATAL EXCEPTION: LeakCanary-Heap-Dump
Process: com.pandaabc.stu, PID: 17300
java.lang.NoSuchMethodError: No static method startForegroundService(Landroid/content/Context;Landroid/content/Intent;)V in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of 'android.support.v4.content.ContextCompat' appears in /data/app/com.pandaabc.stu-1/split_lib_dependencies_apk.apk)
at com.squareup.leakcanary.internal.HeapAnalyzerService.runAnalysis(HeapAnalyzerService.java:49)
at com.squareup.leakcanary.ServiceHeapDumpListener.analyze(ServiceHeapDumpListener.java:36)
at com.squareup.leakcanary.RefWatcher.ensureGone(RefWatcher.java:156)
at com.squareup.leakcanary.RefWatcher$1.run(RefWatcher.java:117)
at com.squareup.leakcanary.AndroidWatchExecutor$3.run(AndroidWatchExecutor.java:79)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.os.HandlerThread.run(HandlerThread.java:61)
Because there is some error in Manifest when I add the leakcanary dependency, I can't build sucessfully, so I exclude the com.android.support, below is the manifest merger error :
Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:preference-v7:25.4.0] AndroidManifest.xml:25:13-35
The text was updated successfully, but these errors were encountered:
Hello, below is the error log:
This error crashed my app.
I did this :
Because there is some error in Manifest when I add the leakcanary dependency, I can't build sucessfully, so I exclude the
com.android.support
, below is the manifest merger error :Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:preference-v7:25.4.0] AndroidManifest.xml:25:13-35
The text was updated successfully, but these errors were encountered: