Open Chenyang0324 opened 5 years ago
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 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.
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
I just looked at your fork and saw you still have a support-v4 dependency in there.
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.
For anyone is facing AndroidX migration issue. try this. implementation 'com.github.Chenyang0324:MaterialDesignLibrary:1.10'