AndroidStudio导入项目后报错

来源:互联网 发布:查看公司开放端口 编辑:程序博客网 时间:2024/06/11 06:11

android studio导入项目之后,报了一个错误,该项目不可以作为一个 library

需要 设置module 中的 build文件

apply plugin: 'com.android.application'        //改为 com.android.libraryandroid {    compileSdkVersion 25    buildToolsVersion "25.0.2"    defaultConfig {        applicationId "com.example.wechat01"  //去除 applicationId        minSdkVersion 14        targetSdkVersion 25    }    buildTypes {  //去除这个部分,没有用        release {            minifyEnabled false            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'        }    }}dependencies {    compile project(':vitamioRecorderLibrary')    compile 'com.android.support:support-v4:25.3.0'    compile 'com.google.code.gson:gson:2.2.4'    compile files('libs/nineoldandroids-2.4.0.jar')    compile files('libs/pinyin4j-2.5.0.jar')}


推荐 这篇文章点击打开链接

0 0