Hello,
i am still very new with cocos creator and sdkbox. i have read the instructions (http://docs.sdkbox.com/en/qa/cocos_creator/), but unfortunately, i can’t compile my project anymore after the integration of admob. before everything was fine.
i have already read many threads, but most of them are either not up to date or do not help me
Thanks
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':testss:processReleaseResources'.
> Android resource linking failed
Output: C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:205: error: resource android:attr/fontVariationSettings not found.
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\mergeReleaseResources\merged.dir\values\values.xml:206: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\User1\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\72eae146b6eabc7f684a3cce2332e71f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
C:\Users\User1\AppData\Local\Android\Sdk\platforms\android-27\android.jar\
--manifest\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\
-o\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_\
-R\
@C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r\
--proguard\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\proguard-rules\release\aapt_rules.txt\
--custom-package\
com.fireball.testss\
-0\
apk\
--output-text-symbols\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\symbols\release\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
Output: C:\Users\User1\.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\ef05cfd35e1739ec7b1211f8f6f7b940\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/fontVariationSettings not found.
C:\Users\User1\.gradle\caches\transforms-1\files-1.1\core-1.0.0.aar\ef05cfd35e1739ec7b1211f8f6f7b940\res\values\values.xml:89:5-125:25: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\User1\.gradle\caches\transforms-1\files-1.1\aapt2-3.2.0-4818971-windows.jar\72eae146b6eabc7f684a3cce2332e71f\aapt2-3.2.0-4818971-windows\aapt2.exe link -I\
C:\Users\User1\AppData\Local\Android\Sdk\platforms\android-27\android.jar\
--manifest\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\merged_manifests\release\processReleaseManifest\merged\AndroidManifest.xml\
-o\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\processed_res\release\processReleaseResources\out\resources-release.ap_\
-R\
@C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\incremental\processReleaseResources\resources-list-for-resources-release.ap_.txt\
--auto-add-overlay\
--java\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\generated\not_namespaced_r_class_sources\release\processReleaseResources\r\
--proguard\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\proguard-rules\release\aapt_rules.txt\
--custom-package\
com.fireball.testss\
-0\
apk\
--output-text-symbols\
C:\Users\User1\Documents\testss\build\jsb-default\frameworks\runtime-src\proj.android-studio\app\build\intermediates\symbols\release\R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-windows Daemon #0
47 actionable tasks: 5 executed, 42 up-to-date
AAPT2 aapt2-3.2.0-4818971-windows Daemon #0: shutdown
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 4s
Error running command, return code: 1.
# Android SDK version that will be used as the compile project
PROP_COMPILE_SDK_VERSION=28
# Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=16
# Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=28
# Android Build Tools version that will be used as the compile project
PROP_BUILD_TOOLS_VERSION=28.0.3
Thanks :D:D
Compiling went through now, if I copy the apk to my mobile phone and execute it there I can click the 2 buttons from the tutorial. But nothing happens. I followed all steps from the manuatutorial. Any ideas why?
I think i found the first problem:
In the Admob settings the ad was specific to the location. I turn this off (also add permission for location to my app)
I add payment configuration to admob setting
Now my logcat looks like this
Filter Ads:
2020-03-29 21:38:33.843 28373-28373/com.fireball.mygame I/Ads: This request is sent from a test device.
2020-03-29 21:38:34.056 3184-31193/? I/Ads: SDK version: afma-sdk-a-v20088999.19649000.1
2020-03-29 21:38:34.164 28373-28373/com.fireball.mygame I/Ads: Ad failed to load : 3
Android
type id
Banner ca-app-pub-3940256099942544/6300978111
Interstitial ca-app-pub-3940256099942544/1033173712
Interstitial Video ca-app-pub-3940256099942544/8691691433
Rewarded Video ca-app-pub-3940256099942544/5224354917
iOS
type id
Banner ca-app-pub-3940256099942544/2934735716
Interstitial ca-app-pub-3940256099942544/4411468910
Interstitial Video ca-app-pub-3940256099942544/5135589807
Rewarded Video ca-app-pub-3940256099942544/1712485313