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

后端 未结 23 1583
天命终不由人
天命终不由人 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:40

    Go to File → Settings → Editor → Auto Import and at java tab you should have:

    Insert imports on paste: ASK.
    If you have import for ALL, then Android Studio import other file.

提交回复
热议问题