Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Android Studio cannot resolve method after Importing a Project

I am new in Android Studio environment. My IDE Version is Android Studio Electric Eel | 2022.1.1 Patch 1. I have been unable to fix this issue for quite some time. I was recently assigned to an already developed Android Studio Project. So, I downloaded it from the git. But after opening it, Android Studio is showing me loads of errors of same type.
The IDE cannot resolve other class’s functions or variables which are used with get and set function.
What is even more confusing to me, when I run the ‘app’ it builds and runs successfully.

Thanks in advance.

I have Invalidated Caches, Restarted IDE, discarded the whole project and again downloaded from git. But these errors are not going away.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

I have faced this problem.
Do not worry. The problem is actually the Lombok Plugin. Android Studio’s latest versions do not support it natively.
Here is what you need to do:

  1. Go to this URL:
    https://plugins.jetbrains.com/plugin/6317-lombok/versions
  2. Check out the latest version and download.
  3. Unzip it in your Downloaded Directory.
  4. Then copy the containing "lombok-plugin" folder and paste it to
    Android Studio/plugins directory.
  5. Invalidate Cache (Optional)
  6. Restart IDE

Hope it helps.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading