cengiz-pz / godot-android-admob-plugin

Enables AdMob functionality on Godot apps that are exported to the Android platform
MIT License
18 stars 2 forks source link

"Compilation failed". (User) #8

Open code-with-max opened 2 days ago

code-with-max commented 2 days ago

New projects break down with this error: (Existing projects work until you clear the Godot cache)

AdmobPlugin singleton not found!
  res://addons/GodotAndroidAdmobPlugin/Admob.gd:2 - Parse Error: Class "Admob" hides a global script class.
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/GodotAndroidAdmobPlugin/Admob.gd" with error "Parse error". (User)
  res://addons/GodotAndroidAdmobPlugin/Admob.gd:2 - Parse Error: Class "Admob" hides a global script class.
  res://addons/GodotAndroidAdmobPlugin/AdmobExportPlugin.gd:-1 - Compile Error: 
  modules/gdscript/gdscript.cpp:2726 - Failed to load script "res://addons/GodotAndroidAdmobPlugin/AdmobExportPlugin.gd" with error "Compilation failed". (User)
cengiz-pz commented 2 days ago

Hi @code-with-max, it sounds like you might have 2 versions of the plugin installed in your Godot project. Could you please check your addons directory and remove plugins that you're not using.

code-with-max commented 1 day ago

Hello @cengiz-pz This was probably due to the VS Code working, when I disabled its use, the problem went away. But! I still can't use the plugin with newly created projects, and I can't really figure out what the problem is. An application with the plug-in enabled gives an error immediately at the time of launch.

07-01 12:06:04.778   587   622 I ActivityManager: Force stopping com.example.test_del_it appid=10166 user=-1: installPackageLI
07-01 12:06:04.780   587   644 I PackageManager: Update package com.example.test_del_it code path from /data/app/~~YO0dD2D69pzxWjeaWNEcCg==/com.example.test_del_it-45FLuPh5mi5iFMXqd9pksg== to /data/app/~~xei34XMC3A-wEvI_YMELUg==/com.example.test_del_it-pzMEVDjkVdYN08pC7Ks1BQ==; Retain data and using new
07-01 12:06:04.879   587   644 I ActivityManager: Force stopping com.example.test_del_it appid=10166 user=0: pkg removed
07-01 12:06:05.052   587   641 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~xei34XMC3A-wEvI_YMELUg==/com.example.test_del_it-pzMEVDjkVdYN08pC7Ks1BQ==/base.apk
07-01 12:06:05.055   587   587 I GameManagerService: Disabling downscale for com.example.test_del_it
07-01 12:06:05.057   587  2024 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN flg=0x10000000 cmp=com.example.test_del_it/com.godot.game.GodotApp} from uid 2000
07-01 12:06:05.088   587   587 I Telecom : CarModeTracker: Package com.example.test_del_it is not tracked.: SSH.oR@C2M
07-01 12:06:05.121   587   587 V GameManagerService_GamePackageConfiguration: No android.game_mode_config meta-data found for package com.example.test_del_it
07-01 12:06:05.121   587   587 W GameManagerService: Invalid package config for com.example.test_del_it:[Name:com.example.test_del_it Modes: {}]
07-01 12:06:05.121   587   587 I GameManagerService: Disabling downscale for com.example.test_del_it
07-01 12:06:05.170   587   587 W AlarmManager: Package com.example.test_del_it, uid 10166 lost permission to set exact alarms!
07-01 12:06:05.271   587  2096 D CoreBackPreview: Window{a05e8a3 u0 Splash Screen com.example.test_del_it}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@b608f59, mPriority=0}
07-01 12:06:05.386   587   623 I ActivityManager: Start proc 5386:com.example.test_del_it/u0a166 for next-top-activity {com.example.test_del_it/com.godot.game.GodotApp}
07-01 12:06:06.312   587   641 E VerityUtils: Failed to measure fs-verity, errno 1: /data/app/~~xei34XMC3A-wEvI_YMELUg==/com.example.test_del_it-pzMEVDjkVdYN08pC7Ks1BQ==/base.apk
07-01 12:06:06.349  5386  5386 E AndroidRuntime: Process: com.example.test_del_it, PID: 5386
07-01 12:06:06.355   587  1548 W ActivityTaskManager:   Force finishing activity com.example.test_del_it/com.godot.game.GodotApp
07-01 12:06:06.427   587   764 I ActivityManager: Process com.example.test_del_it (pid 5386) has died: fg  TOP 
07-01 12:06:06.484   587  2024 D CoreBackPreview: Window{a05e8a3 u0 Splash Screen com.example.test_del_it EXITING}: Setting back callback null
07-01 12:06:06.857   587   614 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{d9d4a04 u0 com.example.test_del_it/com.godot.game.GodotApp} t-1 f}}
07-01 12:06:28.690   587  1545 I ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.test_del_it/com.godot.game.GodotApp bnds=[231,1338][437,1684]} from uid 10139
07-01 12:06:28.742   587  1545 D CoreBackPreview: Window{c360f61 u0 Splash Screen com.example.test_del_it}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@c4a08e3, mPriority=0}
07-01 12:06:28.748   587   623 I ActivityManager: Start proc 6978:com.example.test_del_it/u0a166 for next-top-activity {com.example.test_del_it/com.godot.game.GodotApp}
07-01 12:06:28.987   587  1492 I AppsFilter: interaction: PackageSetting{2fdc72f com.example.test_del_it/10166} -> PackageSetting{618513c com.google.android.apps.nexuslauncher/10139} BLOCKED
07-01 12:06:29.299  6978  6978 E AndroidRuntime: Process: com.example.test_del_it, PID: 6978
07-01 12:06:29.306   587  1545 W ActivityTaskManager:   Force finishing activity com.example.test_del_it/com.godot.game.GodotApp
07-01 12:06:29.312   587   612 I ActivityManager: Showing crash dialog for package com.example.test_del_it u0
07-01 12:06:29.377   587   612 D CoreBackPreview: Window{3f40d0 u0 Application Error: com.example.test_del_it}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.WindowOnBackInvokedDispatcher$OnBackInvokedCallbackWrapper@24a59e8, mPriority=0}
07-01 12:06:29.808   587   614 W ActivityTaskManager: Activity top resumed state loss timeout for ActivityRecord{14eb9e5 u0 com.example.test_del_it/com.godot.game.GodotApp} t56 f}}
07-01 12:06:29.812   587   614 W ActivityTaskManager: Activity pause timeout for ActivityRecord{14eb9e5 u0 com.example.test_del_it/com.godot.game.GodotApp} t56 f}}
07-01 12:06:39.854   587   614 W ActivityTaskManager: Activity destroy timeout for ActivityRecord{14eb9e5 u0 com.example.test_del_it/com.godot.game.GodotApp} t56 f}}

Google led me to thi

And once again, the plugin works great with projects that I migrate from earlier versions of Godot or after using other plugins. The problem is only with newly created projects.