Android Google Playservice ERROR(WEIRD)

3jgamesdev

Member
Hi good day,

I was trying to put ads in my game, and i follow this (Gm documentation), I was able to create an apk without the Google Playservice extentions, but when i try to put it as extensions i was getting an error,

Build settings
Build tools - 28.0.3
Support Library - 28.0.0
Target SDk - 28
Min Sdk- 16
Compile SDK - 28

Code:
  symbol:   variable ConsentStatus
  location: class GooglePlayAdsExtension
W:\com.company.GridironFootball\src\main\java\com\company\GridironFootball\GooglePlayAdsExtension.java:865: error: cannot find symbol
        ConsentInformation.getInstance(RunnerJNILib.ms_context).setConsentStatus(allowPersonalized != 0 ? ConsentStatus.PERSONALIZED : ConsentStatus.NON_PERSONALIZED);
                                                                                                                                       ^
  symbol:   variable ConsentStatus
  location: class GooglePlayAdsExtension
W:\com.company.GridironFootball\src\main\java\com\company\GridironFootball\GooglePlayAdsExtension.java:865: error: cannot find symbol
        ConsentInformation.getInstance(RunnerJNILib.ms_context).setConsentStatus(allowPersonalized != 0 ? ConsentStatus.PERSONALIZED : ConsentStatus.NON_PERSONALIZED);
        ^
  symbol:   variable ConsentInformation
  location: class GooglePlayAdsExtension
Note: W:\com.company.GridironFootball\src\main\java\com\company\GridironFootball\GooglePlayAdsExtension.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
93 errors
:com.company.GridironFootball:compileDebugJavaWithJavac
Incremental compilation of 1 classes completed in 0.331 secs.
:com.company.GridironFootball:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.company.GridironFootball: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: 3.124 secs


C:\WINDOWS\system32\cmd.exe DONE (1)
C:\WINDOWS\system32\subst.exe /d W:


C:\WINDOWS\system32\subst.exe DONE (0)
Error : Build Failed
Igor complete.
elapsed time 00:00:08.8044861s for command "C:\ProgramData/GameMakerStudio2/Cache/runtimes\runtime-2.2.3.344/bin/Igor.exe" -j=8 -options="C:\Users\PC\AppData\Local\GameMakerStudio2\GMS2TEMP\build.bff" -v -- Android Package started at 11/22/2019 23:26:51
"cmd"  /c subst Z: /d

elapsed time 00:00:00.0711903s for command "cmd" /c subst Z: /d started at 11/22/2019 23:27:00
"cmd"  /c subst Y: /d

elapsed time 00:00:00.0820303s for command "cmd" /c subst Y: /d started at 11/22/2019 23:27:00
"cmd"  /c subst X: /d

elapsed time 00:00:00.0831881s for command "cmd" /c subst X: /d started at 11/22/2019 23:27:00
FAILED: Package Program Complete


Then when i try to delete the extentions and recompile my game to android, i am now getting the error above
Please help thanks
 
Top