Developing AOSP with Android Studio

前端 未结 1 854
忘了有多久
忘了有多久 2021-01-31 22:07

I\'m trying to setup a development environment to do some custom modifications on the AOSP source code, and would like to use Android Studio as my IDE. After doing the necessary

1条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-31 22:54

    I always use these steps without any problem at all:

    https://shuhaowu.com/blog/setting_up_intellij_with_aosp_development.html

    The most important parts for your problem are:

    • Set the SDK with no libraries
    • In the Project Structure -> Module -> Remove all of the dependencies that ends with a .jar
    • As a bonus: go to the Sources tab and browse to out/target/common/R. Right click on it and click Source

    In the link you can see screenshots that can make the steps easier to follow.

    0 讨论(0)
提交回复
热议问题