Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: configuring 'shared.google.play.services.ads_com.coronalabs' failed! on Android #42

Closed
laxmansahni opened this issue Jul 30, 2020 · 4 comments

Comments

@laxmansahni
Copy link

We integrated AdMob plugin https://marketplace.coronalabs.com/corona-plugins/admob on Android. Build is successful on iOS with Corona SDK Corona-2020.3577/Corona-2020.3583. However, build fails for Android with following error:

ERROR: configuring 'shared.google.play.services.ads_com.coronalabs' failed!

FAILURE: Build failed with an exception.

  • Where:
    Build file '/private/var/folders/fv/ncmkw66n02g3j471fmv4nd9h0000gp/T/CLtmpwAmei4/template/app/build.gradle.kts' line: 275
  • What went wrong:
    Could not open dsl remapped class cache for ey6ny8s8m4znsvsu606cxnn4z (/Users/laxmansahni/.gradle/caches/5.4.1/scripts-remapped/corona_41juodkgpmcwy5xg30fkn0jt0/ey6ny8s8m4znsvsu606cxnn4z/dsldcd040730888da95d185715568c9cc57).
    > Could not open dsl generic class cache for script '/private/var/folders/fv/ncmkw66n02g3j471fmv4nd9h0000gp/T/CLtmpwAmei4/template/app/build/corona-plugins/shared.google.play.services.ads_com.coronalabs/corona.gradle' (/Users/laxmansahni/.gradle/caches/5.4.1/scripts/ey6ny8s8m4znsvsu606cxnn4z/dsl/dsldcd040730888da95d185715568c9cc57).

Our build.settings file
settings =
{
orientation =
{
-- Supported values for orientation:
-- portrait, portraitUpsideDown, landscapeLeft, landscapeRight

	default ="portrait",
	supported = {"portrait"},
},

android =
{
    applicationChildElements =
    {
        [[
            <meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
                android:value="ca-app-pub-xx~xx"/>
        ]],
    },
},

 iphone = 
{
    plist = 
    {
         GADApplicationIdentifier = "ca-app-pub-xx~xx"  
    },
},

plugins =
{
    ["plugin.admob"] =
    {
        publisherId = "com.coronalabs"
    },
},

}

@Shchvova
Copy link
Contributor

This is a documentation repository. Please do not open game engine here. Thanks.

@Shchvova
Copy link
Contributor

As for the issue, make sure you have Java 8 installed (not java 14,11,12 etc)

@laxmansahni
Copy link
Author

I've Java 13. I'll install Java 8 & let you know.

@laxmansahni
Copy link
Author

I installed Java 8 & build is successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants