Android Question error: <identifier> expected

Discussion in 'Android Questions' started by panagiotisden2, Feb 10, 2017.

  1. panagiotisden2

    panagiotisden2 Active Member Licensed User

    hello,
    i have a project that was working fine.

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

    Code:
    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\browser.java:
    1442: 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)


    EDIT:
    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: Feb 10, 2017
  2. Erel

    Erel Administrator Staff Member Licensed User

    The error you posted has nothing to do with FirebaseAdMob. You have added an invalid java code with the inline java feature.
     
  3. panagiotisden2

    panagiotisden2 Active Member Licensed User

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice