【发布时间】:2017-01-07 20:07:30
【问题描述】:
我是 android studio 的新手,我正在尝试在 android 中导入 eclipse 项目,而依赖的 android 项目很少。
请参阅下面的附加图片和我的消息控制台以了解错误。 我尝试通过将 API 版本更改为 24,这是最新的,没有任何反应,在 SO 的一个答案后再次返回 API 21。 梯度版本。 在包装器中我有 2.14.1,在文件中我有 2.1.3
build.gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "package.name"
minSdkVersion 11
targetSdkVersion 21
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':comtwittersdkandroid_twitter')
compile 'com.google.android.gms:play-services:+'
compile 'com.android.support:appcompat-v7:21.2.0'
compile files('libs/httpclient-4.3.3.jar')
compile files('libs/httpcore-4.4.1.jar')
compile files('libs/httpmime-4.3.jar')
compile files('libs/twitter4j-core-3.0.5.jar')
compile files('libs/universal-image-loader-1.8.0.jar')
compile files('libs/zxing-1.7-core.jar')
compile files('libs/zxing-integration.jar')
}
我试过添加jar而不是编译语句,它不起作用。
任何帮助将不胜感激,在此先感谢。
【问题讨论】:
标签: android android-studio import android-gradle-plugin build.gradle