Obsolete
Status Update
Comments
ma...@gmail.com <ma...@gmail.com> #2
I found the root cause! The fragment savedstate class uses a null class loader. Come on, that's Android 101! The correct creator should be:
public static final Parcelable.Creator<SavedState> CREATOR
= new Parcelable.Creator<SavedState>() {
@Override
public SavedState createFromParcel(Parcel in) {
return new SavedState(in, getClass().getClassLoader()); // <------
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
For wondering how to fix this, reflection will do the trick:
// TODOhttps://issuetracker.google.com/issues/74354091
val fragmentStateField: Field = Fragment.SavedState::class.java
.getDeclaredField("mState").apply {
isAccessible = true
}
// ...
(fragmentStateField.get(savedState) as Bundle).classLoader = javaClass.classLoader
public static final Parcelable.Creator<SavedState> CREATOR
= new Parcelable.Creator<SavedState>() {
@Override
public SavedState createFromParcel(Parcel in) {
return new SavedState(in, getClass().getClassLoader()); // <------
}
@Override
public SavedState[] newArray(int size) {
return new SavedState[size];
}
};
For wondering how to fix this, reflection will do the trick:
// TODO
val fragmentStateField: Field = Fragment.SavedState::class.java
.getDeclaredField("mState").apply {
isAccessible = true
}
// ...
(fragmentStateField.get(savedState) as Bundle).classLoader = javaClass.classLoader
de...@google.com <de...@google.com> #3
Thank you for reporting this issue. For us to further investigate this issue, please provide the following additional information:
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
Android bug report
After reproducing the issue, press the volume up, volume down, and power button simultaneously. This will capture a bug report on your device in the “bug reports” directory. Attach the bug report file to this issue.
Alternate method:
After reproducing the issue, navigate to developer settings, ensure ‘USB debugging’ is enabled, then enable ‘Bug report shortcut’. To take bug report, hold the power button and select the ‘Take bug report’ option.
jp...@google.com <jp...@google.com>
ma...@gmail.com <ma...@gmail.com> #4
Please provide the information requested in comment #3 to investigate this issue further.
de...@google.com <de...@google.com> #5
ma...@gmail.com <ma...@gmail.com> #6
nabrozidhs@, can you please provide the android bug report to confirm that is duplicate or not.
ma...@gmail.com <ma...@gmail.com> #8
Hi,
are there any news on this issue?
Thanks,
Matthias
are there any news on this issue?
Thanks,
Matthias
be...@gmail.com <be...@gmail.com> #9
I have the same issue. Not always reporting the failure on the same class, as above.
--full-stacktrace attached.
Please let me know if I can help further to resolve this.
--full-stacktrace attached.
Please let me know if I can help further to resolve this.
be...@gmail.com <be...@gmail.com> #10
I assume there is no workaround to this issue? Reverting my code to 1.7 without Jack is a very daunting prospect, but I need to produce an obfuscated release build...
ra...@gmail.com <ra...@gmail.com> #11
I get the same error, always when running proguard, and always the RunnerProcessException classes are random which include classes besides the gms package
de...@gmail.com <de...@gmail.com> #12
Same problem here.
de...@gmail.com <de...@gmail.com> #13
Maybe we should read this??
https://developer.android.com/guide/platform/j8-jack.html
"The Jack toolchain is deprecated, as per this announcement. You may continue to use it, or try the latest preview version of Android Studio to use improved support for Java 8 language features built into the default toolchain."
Can we use java 8 without jack? I will try it out with AndroidStudio 3
"The Jack toolchain is deprecated, as per this announcement. You may continue to use it, or try the latest preview version of Android Studio to use improved support for Java 8 language features built into the default toolchain."
Can we use java 8 without jack? I will try it out with AndroidStudio 3
is...@google.com <is...@google.com>
jv...@google.com <jv...@google.com> #14
As the Jack compiler toolchain has been deprecated for 2 years (see https://android-developers.googleblog.com/2017/03/future-of-java-8-language-feature.html ) we are closing all Jack bugs.
Please reopen this bug if it reproduces using the latest stable D8/R8 compiler toolchain.
Please reopen this bug if it reproduces using the latest stable D8/R8 compiler toolchain.
Description
there are various issues concerning Jack and RunnerProcessExceptions. However, I've found none breaking on
com.google.android.gms.internal.zzlr:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformJackWithJackForInappRelease'.
> com.android.sched.scheduler.RunnerProcessException: Error during 'ShrinkAndMainDexTracer' runner on 'public class com.google.android.gms.internal.zzlr'
If I understood the exception right, it occurs when the Jack intermediate code cannot be translated to dex. However, this is not my code but code within gms.
Do you have any ideas on how to resolve this issue? Can I provide you with any more information?
The build.gradle is here:
The proguard file can be found here:
Thank you very much in advance,
Matthias