Nanfeng

Notes on software development, code, and curious ideas

Fixing checkReleaseDuplicateClasses in a Cocos Creator Android Project

The exported project failed at checkReleaseDuplicateClasses:

Gradle error

Add these lines to gradle.properties:

1
2
android.useAndroidX=true
android.enableJetifier=true
gradle.properties

Sync Gradle and rebuild. If duplicates remain, inspect the dependency tree instead of relying on Jetifier alone.

+