Proper way to add dependencies to gradle

前端 未结 3 1913
遇见更好的自我
遇见更好的自我 2021-01-26 06:40

Please consider the following code

dependencies {

    compile fileTree(dir: \'libs\', include: [\'*.jar\'])
    androidTestCompile(\'com.android.support.test.es         


        
相关标签:
3条回答
  • 2021-01-26 07:04

    You need to add compile 'com.parse:parse-android:1.15.7' into dependencies, like this:

    dependencies {
    
        compile fileTree(dir: 'libs', include: ['*.jar'])
        androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
            exclude group: 'com.android.support', module: 'support-annotations'
        })
        compile 'com.android.support:appcompat-v7:25.3.1'
        compile 'com.android.support.constraint:constraint-layout:1.0.2'
        compile 'com.android.support:design:25.3.1
    
        compile 'com.parse:parse-android:1.15.7'
    }
    
    0 讨论(0)
  • 2021-01-26 07:12

    Follow the Steps

    Step 1: Open Project Structure (Ctrl+Alt+ Shift+S)

    Step 2: Tap app menu

    Step 3: Tap Dependencies option

    Step 4: click + menu to add "library dependency"

    Step 5: Type the keywords for your dependency

    Step 6: Click Search icon

    Step 7: Double Click the dependency that found in Search,

    Dependency Added...!

    [show case [1]

    0 讨论(0)
  • 2021-01-26 07:17

    If you are not sure about the syntax or where to add the dependencies in gradle files use Android Studio: File -> Project Structure

    0 讨论(0)
提交回复
热议问题