Help! Error Android Studios SDKBOX

Help! Error Android Studios SDKBOX
0

Hi,
everytime that we add sdkbox (as like googleplay service) we have these errors

Android resource linking failed
Output: /Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:94: error: resource android:attr/fontStyle not found.
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:94: error: resource android:attr/font not found.
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:94: error: resource android:attr/fontWeight not found.
error: failed linking references.

Command: /Users/smallthing/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-4818971-osx.jar/9f1f261ee99db520fbc22fab0b8d5160/aapt2-3.2.0-4818971-osx/aapt2 link -I
/Users/smallthing/Library/Android/sdk/platforms/android-24/android.jar
–manifest
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
–auto-add-overlay
–java
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
–custom-package
com.globalfun.gg.google
-0
apk
–output-text-symbols
/Users/smallthing/Works/CocosCreator/GG/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/symbols/debug/R.txt
–no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-4818971-osx Daemon #0

Anybody could help us? :cry:

ver:

CC 2.2.2

Android Studio 3.5.3
Build #AI-191.8026.42.35.6010548, built on November 15, 2019
JRE: 1.8.0_202-release-1483-b49-5587405 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.2

Thanks for help!

Stefano

set to 7 we have this:

…/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxEditBox.java

error: local variable defaultValue is accessed from within inner class; needs to be declared final||
error: local variable maxLength is accessed from within inner class; needs to be declared final||
error: local variable isMultiline is accessed from within inner class; needs to be declared final||
error: local variable confirmHold is accessed from within inner class; needs to be declared final||
error: local variable confirmType is accessed from within inner class; needs to be declared final||
error: local variable inputType is accessed from within inner class; needs to be declared final||
error: local variable text is accessed from within inner class; needs to be declared final||
error: local variable text is accessed from within inner class; needs to be declared final||
error: local variable text is accessed from within inner class; needs to be declared final||
…/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/java/src/org/cocos2dx/lib/Cocos2dxReflectionHelper.java

:frowning:

We have the same errors if we compile inside cocoscreator… :confused: maybe there is a wrong version library?

We can ask @yinjimmy to help.

we think that we have resolved… our sdk target library was 24 and not 28 or 29… asap we confirm this.
thanks for help!

Stefano

Hi, @yinjimmy

we have still errors if we compile the game from cocoscreators; this the errors inside log:

Configure project :libcocos2dx
Evaluating project ‘:libcocos2dx’ using build file ‘/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos/platform/android/libcocos2dx/build.gradle’.
Creating configuration androidTestUtil
Creating configuration compile
Creating configuration publish
Creating configuration provided
Creating configuration api
Creating configuration implementation
Creating configuration runtimeOnly
Creating configuration compileOnly
Creating configuration wearApp
Creating configuration annotationProcessor
Creating configuration androidTestCompile
Creating configuration androidTestPublish
Creating configuration androidTestProvided
Creating configuration androidTestApi
Creating configuration androidTestImplementation
Creating configuration androidTestRuntimeOnly
Creating configuration androidTestCompileOnly
Creating configuration androidTestWearApp
Creating configuration androidTestAnnotationProcessor
Creating configuration testCompile
Creating configuration testPublish
Creating configuration testProvided
Creating configuration testApi
Creating configuration testImplementation
Creating configuration testRuntimeOnly
Creating configuration testCompileOnly
Creating configuration testWearApp
Creating configuration testAnnotationProcessor
Creating configuration debugCompile
Creating configuration debugPublish
Creating configuration debugProvided
Creating configuration debugApi
Creating configuration debugImplementation
Creating configuration debugRuntimeOnly
Creating configuration debugCompileOnly
Creating configuration debugWearApp
Creating configuration debugAnnotationProcessor
Creating configuration androidTestDebugCompile
Creating configuration androidTestDebugPublish
Creating configuration androidTestDebugProvided
Creating configuration androidTestDebugApi
Creating configuration androidTestDebugImplementation
Creating configuration androidTestDebugRuntimeOnly
Creating configuration androidTestDebugCompileOnly
Creating configuration androidTestDebugWearApp
Creating configuration androidTestDebugAnnotationProcessor
Creating configuration testDebugCompile
Creating configuration testDebugPublish
Creating configuration testDebugProvided
Creating configuration testDebugApi
Creating configuration testDebugImplementation
Creating configuration testDebugRuntimeOnly
Creating configuration testDebugCompileOnly
Creating configuration testDebugWearApp
Creating configuration testDebugAnnotationProcessor
Creating configuration releaseCompile
Creating configuration releasePublish
Creating configuration releaseProvided
Creating configuration releaseApi
Creating configuration releaseImplementation
Creating configuration releaseRuntimeOnly
Creating configuration releaseCompileOnly
Creating configuration releaseWearApp
Creating configuration releaseAnnotationProcessor
Creating configuration testReleaseCompile
Creating configuration testReleasePublish
Creating configuration testReleaseProvided
Creating configuration testReleaseApi
Creating configuration testReleaseImplementation
Creating configuration testReleaseRuntimeOnly
Creating configuration testReleaseCompileOnly
Creating configuration testReleaseWearApp
Creating configuration testReleaseAnnotationProcessor
Parsing the SDK, no caching allowed
SDK initialized in 0 ms
Using incremental javac compilation for :libcocos2dx debug.
Using incremental javac compilation for :libcocos2dx debugUnitTest.
Using incremental javac compilation for :libcocos2dx release.
Using incremental javac compilation for :libcocos2dx releaseUnitTest.
Using incremental javac compilation for :libcocos2dx debugAndroidTest.

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:libcocos2dx’.

java.lang.NullPointerException (no error message)

  • 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.

Many Thanks for help!

Stefano

can this solve your problem ?

yes, we have resolved the trouble with 28

thanks!

Stefano