i try to add recyclerview to my project and get this error appear and i added it from android studio dependencies
相关问题
- How can I create this custom Bottom Navigation on
- Bottom Navigation View gets Shrink Down
- How to make that the snackbar action button be sho
- Listening to outgoing sms not working android
- How to create Circular view on android wear?
相关文章
- android开发 怎么把图片放入drawable的文件夹下
- android上如何获取/storage/emulated/下的文件列表
- androidStudio有个箭头不认识
- SQLite不能创建表
- Windows - Android SDK manager not listing any plat
- Animate Recycler View grid when number of columns
- Why is the app closing suddenly without showing an
- Android OverlayItem.setMarker(): Change the marker
Just add this to your main all project level build.gradle file under allprojects()
Simply change the build-version from compile 'com.android.support:appcompat-v7:26.0.0'
to
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
This will solve your problem.
Add this to the project level build.gradle file and it should work fine.
If you are using Android Studio 3.0 or above make sure your project build.gradle should have content similar to-
And for below Android Studio 3.0 and starting from support libraries 26.+ your project build.gradle must look like this-
Note- position really matters add google() before jcenter()
check these links below for more details-
1- Building Android Apps
2- Add Build Dependencies
3- Configure Your Build
If the other solutions here do not work, make sure you are not in 'offline' mode. If enabled, android will not download the required files and you will get this error.
This is how I have it working.
Add
maven { url "https://maven.google.com" }
as @Gabriele_Mariotti suggests above.Then on the build.gradle file inside the App folder add
Then on the dependencies use