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

后端 未结 5 1381
天涯浪人
天涯浪人 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 01:08

    I just had the same problem and found a way to solve it (You can do this with Android Studio open):

    • Go to you Android Studio projects folder located in c:\users[USERNAME]\AndroidStudioProjects
    • Locate your project folder and open it.
    • Delete the folder named build.
    • From here, enter your application name folder, where you can find another build folder among with libs and src folders and a file named build.gradle.
    • RENAME the build folder to build2 or something else.
    • Now in Android Studio go to Build->Rebuild Project.
    • And after the project was rebuilt, open again the folder where the build2 folder that you renamed is located.
    • Delete the new folder named build that was created.
    • Rename your build2 folder to build again.

    Done.

提交回复
热议问题