我在使用新的Android Studio时遇到了一个大问题,我在StackOverflow上查看了更多帖子,但问题未得到解决。 我有一个使用旧版Android Studio开发的项目...版本是2.4 现在,我已将该项目导入Android Studio 3.2,以进行一些更改并构建新的apk,但出现一些错误: 第一个错误:配置“编译”已过时,并已由“实现”代替。 它将在2018年底删除
我的爷爷是这个:
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public'}
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
useLibrary 'org.apache.http.legacy'
compileSdkVersion 24
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "it.ingv.android"
minSdkVersion 19
targetSdkVersion 25
versionCode 15
versionName "2.4"
// Enabling multidex support.
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
/*dexOptions {
incremental true
javaMaxHeapSize "4g"
}*/
productFlavors {
}
}
dependencies {
//implementation 'com.google.android.gms:play-services:3.2.25'
implementation files('libs/commons-io-2.4.jar')
implementation files('libs/gson-2.2.4.jar')
//implementation files('libs/nineoldandroids-library-2.4.0.jar')
implementation 'com.github.nirhart:parallaxscroll:1.0'
//implementation 'com.android.support:appcompat-v7:21.0.3'
implementation files('libs/Volley.jar')
implementation project(':PullToRefreshmaster')
implementation('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
implementation files('libs/picasso-2.5.2.jar')
implementation 'com.nispok:snackbar:2.11.+'
implementation 'com.williammora:snackbar:1.4.0'
implementation('com.crashlytics.sdk.android:crashlytics-ndk:1.1.1@aar') {
transitive = true;
}
implementation 'me.drakeet.materialdialog:library:1.2.2'
//implementation 'com.android.support:support-v4:23.0.1'
implementation 'com.android.support:appcompat-v7:21.0.3'
implementation 'com.android.support:design:24.2.1'
implementation 'com.android.support:support-v4:24.2.1'
implementation 'com.google.android.gms:play-services:8.4.0'
implementation files('libs/apache-httpcomponents-httpclient.jar')
implementation files('libs/apache-httpcomponents-httpcore.jar')
implementation 'com.code-troopers.betterpickers:library:3.1.0'
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'com.rengwuxian.materialedittext:library:2.1.4'
implementation 'com.android.support:multidex:1.0.1'
}
crashlytics {
enableNdk true
androidNdkOut 'src/main/obj'
androidNdkLibsOut 'src/main/libs'
}
其他错误是:Android Gradle插件无法识别SourceSet'instrumentTest'。也许您拼错了什么? 而且我已经看到这篇文章来修正错误:error
但是使用发布的解决方案说我有一个新错误: 无法从C:\ Users ..... \ app \ AndroidManifest.xml
读取packageName有什么需要的吗?我快疯了