Issue
I found this library in android-arsenal that would fit perfect in my project.
https://android-arsenal.com/details/1/1076
https://github.com/asantibanez/Patio
I tried to import like this:
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.asantibanez:Patio:d11e20326e'
}
But I got a error like this
Error:A problem occurred configuring project ':app'.
> Artifact 'Patio.jar (com.github.asantibanez:Patio:d11e20326e)' not found.
Searched in the following locations:
https://jitpack.io/com/github/asantibanez/Patio/d11e20326e/Patio-d11e20326e.jar
Another thing that I tried was to import by downloading the project zip, and importing it to my project by: File > Import Module. ( Patio-Master folder )
But I got a Gradle error.
Error:(16, 0) Gradle DSL method not found: 'runProguard()'
Possible causes:<ul><li>The project 'dealerbook' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Is there a better/right way to import it to my project?
Solution
- Download Patio project.
- Unzip
- Import module
- Select folder Patio-master/Patio
- Finish
- Edit build.gradle file (Patio one, not your project one)
- Change the follow line to the same as your project build.gradle file
compileSdkVersion 21
buildToolsVersion "21.1.2"
- Comment the follow line in Patio gradle file
applicationId "com.andressantibanez.android.patio"
- Go to File > Project Structure > Dependences
- Click on the (left|plus|add) button on the left bottom
- Select module dependence
- Find Patio in it.
- Now you'r done to use Patio
Answered By - wviana
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.