BuildConfig is public, should be declared in a file named BuildConfig.java
问题 Seem to be getting this occurring error whenever I run my android application. The only way to get around it is by rebuilding the project and runs normally again. If anyone knows the reason for this will be much appreciated 回答1: Fixed Update: Cloned a fresh copy of my code and deleted some of the irrelevant files not needed here What should be in my .gitignore for an Android Studio project? 来源: https://stackoverflow.com/questions/59438157/buildconfig-is-public-should-be-declared-in-a-file