codelab-android-workmanager icon indicating copy to clipboard operation
codelab-android-workmanager copied to clipboard

Fix RuntimeException, remove jcenter and upgrade dependencies

Open PierreVieira opened this issue 4 years ago • 0 comments

Note: This PR guarantees the perfect functioning of the application after all changes.

What is the main problem?

Crash when trying to launch the app on a device with resolution equal to or above xxhdpi.

What does this PR do?

  • Fix runtime exception describes at #257
  • Replacement of jcenter (deprecated) by mavenCentral;
  • Upgrade from agp: 4.1.2 -> 7.0.3;
  • Kotlin upgrade: 1.4.30 -> 1.5.31;
  • sdk target upgrade: 29 -> 31 (it was necessary to add the tag android:exported="true" in the manifest file);
  • Need to use template string due to nullability of second parameter of Log.e in line 98 in WorkerUtils.kt;

How to test?

Just build the app.


Close: #257

PierreVieira avatar Nov 01 '21 23:11 PierreVieira