Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Gradle issue. #70

Open
AyushKoul00 opened this issue Apr 21, 2020 · 0 comments
Open

Gradle issue. #70

AyushKoul00 opened this issue Apr 21, 2020 · 0 comments

Comments

@AyushKoul00
Copy link

I am using the latest version of Android Studio and for some reason, it shows me errors on the build.gradle file right when I import it.
The First error is on the targetSdkVersion which is by default 25. The error says Google Play requires it to be 26 or higher (so I changed this to 26)
The second error is with the android support library. When I fix it and sync the gradle file, I get this error:
ERROR: Failed to resolve: com.android.support.test.espresso:espresso-core:2.2.2
Add Google Maven repository and sync project
Show in Project Structure dialog
Affected Modules: app

This is the code for my build.gradle file currently:
`apply plugin: 'com.android.application'

android {
compileSdkVersion 26
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.android.android_me"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
testCompile 'junit:junit:4.12'
}
`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant