Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ.

前端 未结 15 1521
臣服心动
臣服心动 2020-12-02 05:46

I am new to Android App Development. When I tried to create a new project,Android Project...the following message popped up..

Error:Execution failed for task \':app:

15条回答
  •  盖世英雄少女心
    2020-12-02 05:53

    Go to the build.gradle(Module App) in your project:

    Follow the pic and change those version:

    compileSdkVersion: 27
    targetSdkVersion: 27
    

    and if android studio version 2: Change the line with this line:

    compile 'com.android.support:appcompat-v7:27.1.1'
    

    else Change the line with this line:

    implementation 'com.android.support:appcompat-v7:27.1.1'
    

    and hopefully, you will solve your bug.

提交回复
热议问题