Fixed
Status Update
Comments
fr...@gmail.com <fr...@gmail.com> #2
I am getting the same problem after the latest update...
fr...@gmail.com <fr...@gmail.com> #3
I think this might be the same as issue 36949180 . As mentioned in the comments there, try:
As a temporary workaround, try turning off Preferences > Compiler > Use External Build.
As a temporary workaround, try turning off Preferences > Compiler > Use External Build.
al...@gmail.com <al...@gmail.com> #4
Deleting the out folder before rebuilding solves the problem
sm...@gmail.com <sm...@gmail.com> #5
turning off Preferences > Compiler > Use External Build doesn't work if you have other modules as dependencies.
fr...@gmail.com <fr...@gmail.com> #7
Same issue here
fr...@gmail.com <fr...@gmail.com> #8
Also having this problem, but turning off Preferences > Compiler > Use External Build worked for me, even though I have other modules as dependencies, despite what jai.chan mentioned.
am...@google.com <am...@google.com> #9
[Comment deleted]
sm...@gmail.com <sm...@gmail.com> #10
Problem exists. Turning off "Use external build" helps.
il...@google.com <il...@google.com>
al...@gmail.com <al...@gmail.com> #11
Also having the same problem.But I don't know How can I fix ?
pe...@gmail.com <pe...@gmail.com> #12
The problem is still there... :s
Description
Version used: 25.1.0
Devices/Android versions reproduced on:
Nexus 4 Nougat API 25
The issues happens when the MediaControllerCompat is created with the token of the a MediaSessionCompat which has its lifecycle bind to the application.
Here is the LeakCanary log:
In br.com.me.mediacontrollercompatreprocase:1.0:1.
* br.com.me.mediacontrollercompatreprocase.AnotherActivity has leaked:
* GC ROOT android.os.ResultReceiver$MyResultReceiver.this$0
* references android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi21$1.this$0 (anonymous subclass of android.os.ResultReceiver)
* references android.support.v4.media.session.MediaControllerCompat$MediaControllerImplApi24.mControllerObj
* references android.media.session.MediaController.mContext
* leaks br.com.me.mediacontrollercompatreprocase.AnotherActivity instance
* Retaining: 48 KB.
* Reference Key: c72cb728-7e92-4fce-959a-b2a856ea7af6
* Device: unknown Android Android SDK built for x86_64 sdk_google_phone_x86_64
* Android Version: 7.1 API: 25 LeakCanary: 1.5 00f37f5
* Durations: watch=5013ms, gc=112ms, heap dump=3237ms, analysis=18682ms
For more details, you could use the following sample to reproduce it.