Are you struggling with ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing in Android using eclipse , this error comes in R.Java files, you clearly see on you project, then don't worry , we have solution for this error.
Steps:
1. Right Click on Project
2. Go to Properties
3. Choose Android
4. Change Below API version then previous(eg. if 5.1.1 then 4.1.2 or other below 5.1.1)
5.and finally clean the project.
However, if above solution did not solve your problem, try next method,
This error comes sometimes because you are using an old Appcompat version .. update Appcompat, to the newer version which is compatible with API 22, then click on fix project properties .
Happy Coding !!!
Featured Post
Implementing Hilt in a Kotlin Android Jetpack Compose Project with MVVM Architecture
In modern Android development, maintaining a scalable codebase can be challenging, especially when it comes to dependency management. Hilt,...
Android Tutorials
ERROR: In
Home
Android Errors
Android Tutorials
ERROR: In MenuView, unable to find attribute android:preserveIconSpacing in Android