Hello guys, i’m not so familiary with the code in general but i made a game, with the help of AI,
i tried to convert the html css javascript (3 separate files) into apk, first i tried with cordova the game compiled just good, but wherever i tried to add admob it failed.. now i tried with the capacitor (7.2, after i downgraded to 5.7, not working) i was getting closer and closer (getting thise in logcat : Capacitor/Console com.luci3alin.weaponlegend E File: https://localhost/script.js - Line 3881 - Msg: Error in AdMob prepare/show process: TypeError: AdMob.showRewarded is not a function
after some changes i got this in log cat :
2025-06-04 01:07:25.881 4088-4088 Capacitor/Console com.luci3alin.weaponlegend I File: https://localhost/script.js - Line 3724 - Msg: Attempting to show AdMob rewarded ad for free gold.
2025-06-04 01:07:25.882 4088-4088 Capacitor/Console com.luci3alin.weaponlegend I File: https://localhost/script.js - Line 3869 - Msg: AdMob plugin (@capacitor-community/admob) found. Proceeding with ad request.
2025-06-04 01:07:25.882 4088-4088 Capacitor/Console com.luci3alin.weaponlegend I File: https://localhost/script.js - Line 3874 - Msg: Attempting to initialize AdMob plugin.
2025-06-04 01:07:25.883 4088-4088 Capacitor/Plugin com.luci3alin.weaponlegend V To native (Capacitor plugin): callbackId: 128138130, pluginId: AdMob, methodName: initialize
2025-06-04 01:07:25.883 4088-4088 Capacitor com.luci3alin.weaponlegend V callback: 128138130, pluginId: AdMob, methodName: initialize, methodData: {}
2025-06-04 01:07:25.887 4088-4088 Capacitor/Console com.luci3alin.weaponlegend I File: - Line 334 - Msg: undefined
2025-06-04 01:07:25.887 4088-4088 Capacitor/Console com.luci3alin.weaponlegend I File: https://localhost/script.js - Line 3876 - Msg: AdMob plugin initialized.
2025-06-04 01:07:25.887 4088-4088 Capacitor/Console com.luci3alin.weaponlegend E File: https://localhost/script.js - Line 3890 - Msg: Capacitor AdMob plugin found, but AdMob.showRewarded method is NOT available or not a function after initialization attempt.
2025-06-04 01:07:25.888 4088-4088 Capacitor/Console com.luci3alin.weaponlegend E File: https://localhost/script.js - Line 3891 - Msg: This indicates a core plugin installation or linking issue. Please verify plugin version and Android Studio project setup.
also this command don’t work either ./gradlew clean build
i got errors when i try to compile
Please i need some help