android - getting issues while adding other gradle project as library -


actually have been trying import gradle project library github , know there 2 ways that

1)by adding url dependencies in build.gradle file method gave lot of errors

2)manually download library , import module, add dependencies

and somehow succeeded using second method ..

after gradle sync worked correctly while running application gives bizzare errors like

error:(23, 0) gradle dsl method not found: 'ompile()' possible causes:

  • the project 'appintro' may using version of gradle not contain method. open gradle wrapper file
  • the build file may missing gradle plugin. apply gradle plugin
  • and github link follows

    https://github.com/paolorotolo/appintro

    i imported folder called library in that....

    you can add library in many ways:

    • add simple dependency in build.gradle file

    just use:

    dependencies {   compile 'com.github.paolorotolo:appintro:3.4.0' } 

    just add repo build.gradle

    repositories {         // ...         maven { url "https://jitpack.io" }     } 

    and dependency:

    dependencies {         compile 'com.github.user:repo:tag'     } 
    • download module (the library folder) locally.

    Comments

    Popular posts from this blog

    php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

    javascript - Get parameter of GET request -

    javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -