Skip to content

thejk/AppWithRecord

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppWithRecord — AGP 9.2.0 Java Record bug reproduction

Minimal Android app containing a single Java Record class, used to reproduce a runtime bug introduced in Android Gradle Plugin 9.2.0.

Upstream bug report: https://issuetracker.google.com/issues/504996348

The bug

AGP 9.2.0 produces an APK that fails at runtime when the app contains a Java Record class. The same project builds and runs correctly with AGP 9.1.1.

Reproducing

Broken (current HEAD — AGP 9.2.0):

git checkout main   # 3d765c7
./gradlew assembleDebug
# Install and run → crashes / invalid APK at runtime

Working (AGP 9.1.1):

git checkout 4ba33b9
./gradlew assembleDebug
# Install and run → works correctly

Project structure

app/src/main/java/com/example/appwithrecord/
├── MainActivity.java   # instantiates Point
└── Point.java          # public record Point(int x, int y) {}

About

AGP 9.2.0 creates invalid apk if there is Java Record class

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages