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

FAILURE: Build failed with an exception. #33

Open
hicach99 opened this issue Aug 28, 2022 · 4 comments
Open

FAILURE: Build failed with an exception. #33

hicach99 opened this issue Aug 28, 2022 · 4 comments
Labels

Comments

@hicach99
Copy link

I am building an app not a game. but when implementing UnityAds i got this build error.
I Don't hnow what'is wrong some one help.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':unity_ads_plugin:parseDebugLocalResources'.
> Could not resolve all files for configuration ':unity_ads_plugin:androidApis'.
   > Failed to transform android.jar to match attributes {artifactType=android-platform-attr, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
      > Execution failed for PlatformAttrTransform: C:\Android\android-sdk\platforms\android-30\android.jar.
         > C:\Android\android-sdk\platforms\android-30\android.jar

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --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 32s
>Running Gradle task 'assembleDebug'...                             33.7s
>Exception: Gradle task assembleDebug failed with exit code 1
@shivsidan
Copy link

I am having the same issue - did you fixt it? if yes, please let me know

@Mayank985
Copy link

Try this, It might help

Added this in this package's android/build.gradle file (dependencies section)
implementation "androidx.core:core-ktx:1.6.0"

and this at very end in the same build gradle file. Somehow it got solved.
configurations.all {
resolutionStrategy {
force 'androidx.core:core-ktx:1.6.0'
}
}

I was stuck for very long. hope anyone else don't have to

@NoOne696969
Copy link

@Mayank985 I cannot dind the package folder for unity in my project

Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants