Cocos2d-x 3.17 and android studio 3.3 build Issue or Error?

Hi,
After i am update android studio 3.3

I am using cocos2d-x 3.17(c++) It was working fine till android studio 3.2. But it has been stuck at ‘Scanning files to index’ for a very long time now. Since android studio 3.3.

I have tried re-installing it, and also tried Invalidate Caches / Restart
Can anyone help? Thanks.

1 Like

The same with me but only on project with PROP_BUILD_TYPE=ndk-build

Resolve issue.
-cocos2d-x 3.17.1 update.

Unresolved issues.
-cmake minversion.
-WARNING: API ‘variant.getMergeAssets()’ is obsolete and has been replaced with ‘variant.getMergeAssetsProvider()’.

@great2077 What is the unresolved issue regarding cmake minversion?

In case this helps, you can specify version 3.10.2 of cmake in the build.gradle file, as described in the Android Studio release notes:

android {
    ...
    externalNativeBuild {
        cmake {
            ...
            version "3.10.2"
        }
    }
}

Thanks.

Unresolved issues.
-WARNING: API ‘variant.getMergeAssets()’ is obsolete and has been replaced with ‘variant.getMergeAssetsProvider()’.

Just change string variant.mergeAssets.doLast {
to
variant.mergeAssetsProvider.get().doLast {

11 Likes