Maven, IntelliJ Idea and Android Sources

I use a combination of Maven and IntelliJ Idea.

Although javadoc and sources are displayed using the Android module in Idea, I don't see any of them using Android maven.

Any help how to show sources also with Maven in Idea? Should I install it in pom.xml or somewhere in Idea settings?

+4
source share
2 answers

Please check the relevant issue for a workaround:

manually attach sources to the Maven project library: com.google.android ...

For more information on how to do this, see Module Dependencies .

+1
source

First of all, make sure you download sources from the Android SDK for the purpose that you use in your project.

Now in IntelliJ, in the Project Structure section (CMD +;) => Modules => Dependencies, you should see "Maven: com.google.android:androidrige.1.1.4", as well as "Android XX Platform (java version ...) " Select "Android XX" and click the up arrow at the bottom to move it up so that it is at the top.

You should now be working with an SDK that includes sources

0
source

Source: https://habr.com/ru/post/1435602/


All Articles