Gradle更新后的错误

时间:2018-10-10 13:30:17

标签: android-studio android-gradle

我安装了Android Studio 3.3 Canary 13。

打开我在Android Studio上使用较早版本编写的应用程序时,我收到一条消息,提示需要Android Gradle插件更新

enter image description here

更新成功完成后,我的代码(红色文本)出现很多错误,提示无法解析方法 findViewById, getString, startActivity, 完成 还有更多

以下是我的应用gradle文件-

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId "com.shail.mycam"
        minSdkVersion 23
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
repositories {
mavenCentral()

}
dependencies {

implementation 'com.google.firebase:firebase-messaging:11.8.0'
implementation 'com.google.firebase:firebase-core:11.8.0'
//    implementation 'com.google.firebase:firebase-invites:15.0.0'
implementation 'com.google.firebase:firebase-invites:11.8.0'
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})

implementation files('libs/ksoap2-android-assembly-2.4-jar-with-dependencies.jar')
implementation 'com.facebook.android:facebook-android-sdk:4.30.0'
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:support-v4:27.0.2'
testImplementation 'junit:junit:4.12'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'

}

apply plugin: 'com.google.gms.google-services'

我的应用程序中发生了什么变化?

0 个答案:

没有答案