Android Studio: disabling “External build” to display error output create duplicate class errors

后端 未结 5 1414
天涯浪人
天涯浪人 2021-01-12 00:23

I am starting my migration from Eclipse to Android Studio, and start playing with new projects on Studio.

My test project was working fine till I got some errors mes

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 00:52

    Ok, I also have the same problem, and this is what worked for me. I first unticked external build from compiler settings. Then when I compiled i get two errors related to R.java, duplicate class. Then i delete the build folder manually from finder. Then rebuild it from android studio, but still same error. Then I again go back to compiler preference and tick the external build setting, and it worked fine after that. Looks like some bug.

提交回复
热议问题