Since I upgraded my Nexus 5x to Android O DP3, I cannot test my applications. I get an error because I have not configured my Gradle file to work with the new API level (26).
So, I changed this and the dependencies, but I keep getting errors in all my support libraries, such as
Failed to resolve: com.android.support:design:26.0.0-beta2
By clicking
Install repository and sync project
Restores the progress of the dialog to load the correct dependency, but does not remove the error. Cleaning up the project, installing repositories, and then restoring the project will also not work.
Appcompat-v7
In appcompat-v7: 26.0.0-beta2 I get (before even Gradle sync) squeaky lines with an error:
When using a compileSdkVersion older than android-O revision 2, the support library version must be 26.0.0-alpha1 or lower (was 26.0.0-beta2)
Can someone help me set up the Gradle file for Android API 26 correctly? Any help would be appreciated.
PS: I am using Gradle 3.0.0-alpha3 at the moment, but getting the same error on Gradle 2.3.2
My gradle file:
apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion '26.0.0' defaultConfig { applicationId "********" minSdkVersion 21 targetSdkVersion 26 versionCode 3 versionName "2.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:26.0.0-beta2' compile 'com.android.support:design:26.0.0-beta2' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.android.support:cardview-v7:26.0.0-beta2' compile 'com.android.support:recyclerview-v7:26.0.0-beta2' compile 'com.redbooth:WelcomeCoordinator:1.0.1' compile 'com.github.kittinunf.fuel:fuel-android:1.4.0' compile 'com.pkmmte.view:circularimageview:1.1' compile 'com.ramotion.foldingcell:folding-cell:1.1.0' }
android build.gradle gradle android-o android-support-library android-8.0-oreo
GunnarK Jun 12 '17 at 13:02 on 2017-06-12 13:02
source share