Android Question error: <identifier> expected


Active Member
Licensed User
Longtime User
i have a project that was working fine.

edited it by adding firebase admob and firebase analytics, just after that it throws an error:

B4A version: 6.50
Parsing code.    (0.09s)
Compiling code.    (0.18s)
Compiling layouts code.    (0.02s)
Organizing libraries.    (0.00s)
Generating R file.    (1.70s)
Compiling generated Java code.    Error
javac 1.8.0_91
src\com\orionapps\zerodot\ error: <identifier> expected
Public void _onResume() {
1 error

this is driving me crazy. i tryed to clean project but didnt work.

i saw some threads that users changed the package name and it compiled, i changed it too but still the same error. Also i cant change my package name because the app published on play store

ps. this line is in #If JAVA integration of pollfish (search the forum for it)

if i change "Public void" with "public void" (change P to p) it gets past it but it stops somewhere else after it
Last edited:


Active Member
Licensed User
Longtime User
The error you posted has nothing to do with FirebaseAdMob. You have added an invalid java code with the inline java feature.

hi erel, the code was correct, it was working 10 minutes before i add firebaseadmob+analtics.
anyway i solved it by removing the inline java code, compile it without it(compiled succesfully) then pasted the code again and it worked.
Upvote 0