0

I am so frustrated with Android Studio. I have two projects - one is a library, and one is the app that uses the library. These are built in two separate Android Studio windows.

When I make a change to the library, such as adding a function or a new data type, I then compile it into an AAR, and place the result in a folder in the app project. The gradle for the app project lists this library in the dependencies section as follows:

implementation fileTree(dir: 'libsUniversal', include: ['*.jar', '*.aar'])

So, look for all ".aar" files in the directory 'libsUniversal'

Everything compiles fine. However, the freaking editor in Android Studio doesn't know apparently what these new functions and data types are, as they are in red and when you mouse over them, it doesn't know what it is.

Invalidating caches doesn't fix it Cleaning the project and rebuilding it doesn't fix it.

It severely hampers development that this editor can't seem to figure out what this is, because at that point, I'm just having to use my own knowledge on what I changed to go, yeah, this is the proper syntax.

How can Android studio "work" (i.e. compile), but the stupid bleeping editor can't understand the code? So frustrating.

And yes, please feel free to comment on what a stupid programmer I am for doing it this way - I should instead place the file here and write a script there and modify my gradle like so, because... reasons. Why would I want to do something obvious that every other IDE can do? I should be happy to instead work around Android Studios quirks!

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.