HELP :( | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

HELP :(

I'm using android studio.. Want to add a cardview in my app So I go dependencies to add it but i got 2 red line which is 'com.android.support.constraint:constraint-layout:1.0.2' and 'com.android.support:cardview-v7:28.0.0-alpha1' I used the Project Structure still I got the same error.. Please Help me :( dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.0.0-beta1' implementation 'com.android.support.constraint:constraint-layout:1.0.2' implementation 'com.android.support:cardview-v7:28.0.0-alpha1' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' }

3rd May 2018, 1:58 AM
Xcode_G
Xcode_G - avatar
1 Réponse
+ 3
Yeah, I remember Android Studio's cryptic error messages; since I had nobody to turn to, I took solace that I wasn't the only one getting these and managed not to go completely crazy. As a general reference: https://developer.android.com/guide/topics/ui/layout/cardview Possibly specifically for you (edit build.gradle and specify a lower version): https://stackoverflow.com/questions/49325037/recyclerview-and-cardview-dont-support-compilesdkversion
3rd May 2018, 2:27 AM
Kirk Schafer
Kirk Schafer - avatar