Java – render Android support. design. widget. Coordinatorlayout problem
•
Java
I upgraded Android studio to 2.2 Problems faced after 3
I tried to fix the build path, but it didn't work for me When I build and run it, it displays
This is my build gradle(App Module)
apply plugin: 'com.android.application' android { compileSdkVersion 24 buildToolsVersion "24.0.2" defaultConfig { applicationId "fitness.aclass.fitness" minSdkVersion 16 targetSdkVersion 24 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(include: ['*.jar'],dir: 'libs') 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:24.2.0' testCompile 'junit:junit:4.12' }
Any solution!
Solution
Coordinatorlayout is part of the design library So you should add
Compile 'com android. support:design:25.2. 0′
Or 24.2 0 version, if you need to use an outdated version for some reason
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码