oasisfeng / island

Island for Android
https://play.google.com/store/apps/details?id=com.oasisfeng.island
Apache License 2.0
2.59k stars 198 forks source link

Unable to build the project! #47

Open wkable opened 4 years ago

wkable commented 4 years ago

Build the project with gradle command:./gradlew assembleCompleteDebug and it failed with the folloing errors:

Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
        is also present at [androidx.core:core:1.0.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
oasisfeng commented 4 years ago

Check the Gradle dependencies to find out where the dependency "com.android.support:support-compat:28.0.0" is introduced.

wkable commented 4 years ago

Check the Gradle dependencies to find out where the dependency "com.android.support:support-compat:28.0.0" is introduced.

Thanks for your quick reply. The problem above can be soved with:

configurations.all {
    exclude group: "com.android.support", module: "support-compat"
}

But, there are other problems:

  1. deagle module uses androidx.databinding but mobile module uses android.databinding.
  2. other dependency conflicts about androidx as well.

I'm confused that why I cannot build the project successfully with the same code as you...