Android/kotlin: Error: "expecting A Top Level Declaration > Task :app:buildinfogeneratordebug"
I try to write a class to manage a SQLite DB, but I have the error message 'Expecting a top level declaration > Task :app:buildInfoGeneratorDebug'. package com.xexxxwxxxxs.GM
Solution 1:
I just delete the last curly brace and write it again. It's working :)
Solution 2:
The same happened to me, you just need to remove an auto-generated extra curly bracket at the end, then it works.
Post a Comment for "Android/kotlin: Error: "expecting A Top Level Declaration > Task :app:buildinfogeneratordebug""