Android Studio: This file not part of the project, but the project builds successfully

前端 未结 5 516
后悔当初
后悔当初 2021-01-13 20:03

I have a strange problem that suddenly appeared in android studio. I created a new cpp file, and included it in Android.mk. Then I synced the project. However, android studi

5条回答
  •  猫巷女王i
    2021-01-13 20:38

    Had the same problem with Android Studio 4.0.1 and the latest gradle at this time (6.1.1?). The problem went away after I exited Android Studio and deleted .gradle and .idea folders in the project main directory, plus deleted .cxx and build directories in the affected module directory. I'm not sure which really helped, but most probably deleting .grade and/or .idea

提交回复
热议问题