Questions tagged [android-gradle-plugin-8.0]

5 questions
13
votes
4 answers

Resource IDs will be non-final by default in Android Gradle Plugin version 8.0, avoid using them in switch case statements

I have a warning in Android Studio about my navigation drawer resources. Warning is: Resource IDs will be non-final by default in Android Gradle Plugin version 8.0, avoid using them in switch case statements. I tried to use the method if to update…
D4rK
  • 329
  • 4
  • 12
1
vote
1 answer

proguard-rules "-dontwarn" not working (AGP 8.0)

After updating to Android Gradle Plugin 8.0, I get the following build-time errors during the minifyReleaseAndroidTestWithR8 step: Missing classes detected while running R8. Please add the missing classes or apply additional keep rules that are…
1
vote
1 answer

getParcelable() crashes due to null ifTable in AGP 8

I recently updated to AGP 8 and I released an update on to the play store. I am getting reports of some crashes in an area of code that was not changed recently. I am fairly confident this is a crash caused by the AGP 8 upgrade, specifically around…
idunnololz
  • 8,058
  • 5
  • 30
  • 46
0
votes
1 answer

Refactoring RecyclerView with multi ViewHolder from ButterKnife using ViewBinding

Wanting to switch to version 8.0 of AGP for my Android project I had to refactor a lot of java classes where the developer before me used ButterKnife to bind variables to layout elements. The last class I encounter is a RecyclerView that uses…
0
votes
1 answer

Admob crash on initialization with "VerifyError" after upgrading to AGP 8

Updated to AGP 8 recently. I tested a release build on all my test devices prior to releasing to play store. Once released there, I am getting reports that a lot of users are crashing on app launch due in MobileAds.initialize() due to a…
idunnololz
  • 8,058
  • 5
  • 30
  • 46