• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Android problem compiling for andriod - build failed

F

Farouk

Guest
Hi
my game was compiling for andriod normally
i did a lot of coding without compiling then later as i ran it on andriod i started getting this output
any idea what went wrong?
i also added firebase admob extension & updated google play services extenstion


:com.company.game:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Y:\com.company.game\src\main\java\com\company\game\AdMobBridge.java:561: error: method does not override or implement a method from a supertype
@Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:com.company.game:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':com.company.game:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 5.291 secs
C:\WINDOWS\system32\cmd.exe DONE (1)
C:\WINDOWS\system32\subst.exe /d Y:
C:\WINDOWS\system32\subst.exe DONE (0)
System.Exception: Build Failed
at ..(YYDictionary`2 , String , String , Boolean , String )
at Igor.AndroidBuilder.Deploy(Boolean _exe)
at Igor.AndroidBuilder.Run()
Igor complete.
 
Last edited by a moderator:
F

Farouk

Guest
ok problem solved :)

it was a problem with the extensions and cache
i removed all the extensions and added them again
then i cleared all cache (asset cache, temp folder and cache from the iDE , prefrences--> paths --->)

now it worked :)
 
F

Farouk

Guest
ok the problem came again after installing the Firebase Admob extension
it's giving the same error
Y:\com.company.game\src\main\java\com\company\game\AdMobBridge.java:561: error: method does not override or implement a method from a supertype
@Override

any idea how to get the APP to run?
 
W

Wraithious

Guest
Is that a free extension? if so can you post that method and the method it's inside of? another thing that might possibly be the cause is your minimum sdk setting, try bumping it up to 14, Ive noticed updating to build tools 26 and targeting sdk 26 to comply with googles new rules requires a minimum sdk of 14.
 
ok the problem came again after installing the Firebase Admob extension
it's giving the same error
Y:\com.company.game\src\main\java\com\company\game\AdMobBridge.java:561: error: method does not override or implement a method from a supertype
@Override

any idea how to get the APP to run?
Do you have any hand problem friend? would you help me
 
Top