search

Home  >  Q&A  >  body text

android-studio - Why is Android Studio unable to reference classes in Moudle after introducing Moudle?

I introduced a control in a project in the form of Moudle, but when I used it I found that I could not introduce any class in this Moudle

It is also introduced in settings.gradle
It is also introduced in the project structure, but the code in Moudle cannot be referenced when writing code.

Completely deleting Moudle and then re-importing it, or creating a new Moudle and copying the classes into it will not work.
It will be useless to close AS, delete the .idea file in the root directory and then restart it.

Help. . .

黄舟黄舟2705 days ago1446

reply all(2)I'll reply

  • 某草草

    某草草2017-07-03 11:44:18

    Compile project of main module

    reply
    0
  • 巴扎黑

    巴扎黑2017-07-03 11:44:18

    Requires main module dependency

    reply
    0
  • Cancelreply