Android Studio don't generate R.java for my import project

后端 未结 23 1588
天命终不由人
天命终不由人 2020-12-29 04:20

I import a project to Android Studio , but the R.java is always empty.

public final class R {
}

I have tried:

  1. Make project,ma
23条回答
  •  有刺的猬
    2020-12-29 04:32

    In my case I had an empty line prior a drawable definition in xml. This was braking aapt essentially not allowing to generate R.java .

提交回复
热议问题