Skip to content

Conversation

@JerryMig
Copy link

Migrates to using AndroidX to prevent duplicate class exception from implementing both AndroidX and support libraries.

This is to fix #24

According to Google doc, when using AndroidX, we have to set the following Android Gradle plugin flags to true in your Android project's gradle.properties file.

  • android.useAndroidX
  • android.enableJetifier

Therefore, in order for Unity to generate a custom gradle.properties file when building Android apks, we have to add gradleTemplate.properties and specify the two flags in it according to the answer.

@CLAassistant
Copy link

CLAassistant commented Jul 23, 2020

CLA assistant check
All committers have signed the CLA.

@JerryMig JerryMig force-pushed the migrate_to_using_androidx_libraries branch from e27ff67 to f30da0b Compare July 23, 2020 07:35
@JerryMig JerryMig force-pushed the migrate_to_using_androidx_libraries branch from f30da0b to cfd3ae7 Compare July 23, 2020 07:36
@plateaukao plateaukao requested a review from onevcat July 23, 2020 07:43
Copy link
Member

@plateaukao plateaukao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@onevcat onevcat merged commit 45c2688 into line:master Jul 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Execution failed for task ':launcher:checkReleaseDuplicateClasses'.

4 participants