MaterialDesignLibrary icon indicating copy to clipboard operation
MaterialDesignLibrary copied to clipboard

AndroidX

Open Chenyang0324 opened this issue 6 years ago • 4 comments

For anyone is facing AndroidX migration issue. try this. implementation 'com.github.Chenyang0324:MaterialDesignLibrary:1.10'

Chenyang0324 avatar Jan 18 '19 20:01 Chenyang0324

I just tried it out but I still get this error:

ERROR: Unable to resolve dependency for ':app@googlePlayFlavorDebug/compileClasspath': Could not resolve com.android.support:support-v4:22.+.

taar1 avatar Jan 21 '19 20:01 taar1

@taar1 Check if there is any other place is referencing support library. The app should be no longer referencing any support library if you are migrating to Android X.

Chenyang0324 avatar Jan 21 '19 22:01 Chenyang0324

I just did another test. I commented this out: implementation 'com.github.Chenyang0324:MaterialDesignLibrary:1.10'

and I could build the app without error messages (well except the errors I get for not having the MaterialDesignLibrary in the project but references to it in the code). As soon as I uncomment it and try to build it I get this error:

ERROR: Unable to resolve dependency for ':app@googlePlayFlavorDebug/compileClasspath': Could not resolve com.android.support:support-v4:22.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@googlePlayFlavorDebugAndroidTest/compileClasspath': Could not resolve com.android.support:support-v4:22.+. Show Details Affected Modules: app

ERROR: Unable to resolve dependency for ':app@googlePlayFlavorDebugUnitTest/compileClasspath': Could not resolve com.android.support:support-v4:22.+. Show Details Affected Modules: app

taar1 avatar Jan 22 '19 08:01 taar1

I just looked at your fork and saw you still have a support-v4 dependency in there.

https://github.com/Chenyang0324/MaterialDesignLibrary/blob/master/MaterialDesignLibrary/MaterialDesign/build.gradle

dependencies { compile 'com.nineoldandroids:library:2.4.+' compile 'com.android.support:support-v4:22.+' compile fileTree(dir: 'libs', include: '*.jar') }

Could you remove that dependency and make a new version? I think after that it should build.

taar1 avatar Jan 22 '19 08:01 taar1