如何在build gradle中编译模块包?

时间:2017-04-08 12:03:24

标签: java

我正在尝试在android studio中的build.gradle中编译一个包文件夹。当我同步错误时显示“错误:(29,0)提供的字符串模块表示法”com.google.activities.components.runtime.ListPickerActivity '无效。示例符号:'org.gradle:gradle-core:2.2','org.mockito:mockito-core:1.9.5:javadoc'。 建立gradle:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "store.muha.com.freequranapp"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

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:23.4.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.activities.components.runtime.ListPickerActivity'
    testCompile 'junit:junit:4.12'
}

有什么建议吗?

0 个答案:

没有答案