-
-
Notifications
You must be signed in to change notification settings - Fork 354
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android build fails #203
Comments
This error seems to most commonly arise from a mismatch between the Android compile SDK version and the support library / build tools version (see here). The solution in most cases seems to be updating the |
I just noticed your comment about the ImagePicker appears to insert its own custom theme which is based on the Holo Light theme and this may be causing the problem since the AppCompat library on which this plugin depends introduces backward compatibility of material themes for devices running pre-Lollipop Android. |
Thanks @dpa99c for the quick reply. I am adding |
I have opened an issue |
You didn't say before that you were using the Telerik variant of the ImagePicker plugin. Your problem is a Gradle dependency collision: The Telerik ImagePicker is specifically dependent on v23 of the AppCompat library and pins this version to Whereas this plugin (diagnostic) doesn't pin a specific version ( Therefore, there's a dependency version mismatch. In which case, Gradle will take the highest version, which is the most recent version as specified by the diagnostic plugin. And by including the latest version of AppCompat, the build fails because the ImagePicker plugin is specifically dependent on v23 AppCompat - you can confirm this by installing only the ImagePicker plugin into a test project, changing the Your easiest option is to fork this (diagnostic) plugin repo, and set the AppCompat version in Alernatively you could fork the Telerik ImagePicker plugin repo and edit the |
@dpa99c Dependency mismatch was the issue. I tried the temporary solution and changed I am also trying for a permanent solution. I am trying to make Thanks you so much @dpa99c . You were really helpful. |
I am working with the latest
Diagnostic
plugin. It is not working withImagePicker
plugin. Both plugins work independently. I am unable to build my sdk withionic run android``.
Gradle` throws an error ,I did recently updated my
SDK
tools. I am not sure if thats what cause the problem.android: 6.2.1
SDK tools: 25
Support Repository: 47
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
I have
build-tools
25
,24
,23
installed as well.I did try removing and readding platform and all plugins. Nothing seems to help.
The text was updated successfully, but these errors were encountered: