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

Couldn't build apk on simulator. Conflict with Android dependency com.google.android.gms:play-services-ads-base #10

Closed
theneshfmt opened this issue Jan 1, 2019 · 8 comments
Labels
Android Only effects Android waiting for response Waiting for customer response

Comments

@theneshfmt
Copy link

theneshfmt commented Jan 1, 2019

Using this plugin along with the firebase admob, gives the below issue while building. I guess this is due to the version conflicts of the dependency.

Launching lib/main.dart on Android SDK built for x86 in debug mode...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)

FAILURE: Build failed with an exception.

  • What went wrong:
    Failed to capture fingerprint of input files for task ':app:checkDebugClasspath' property 'runtimeClasspath' during up-to-date check.

The library com.google.android.gms:play-services-ads-base is being requested by various other libraries at [[17.0.0,17.0.0], [17.1.1,17.1.1]], but resolves to 17.1.1. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies.

  • 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 15s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

@kyungjoongo
Copy link

Same Issue

@kyungjoongo
Copy link

kyungjoongo commented Jan 17, 2019

To solve this,
Add the following at the bottom of /android/app/build.gradle.

configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.1' force 'com.google.android.gms:play-services-ads:17.0.0' } }

@thaerhamza
Copy link

not working

@kmcgill88
Copy link
Owner

@theneshfmt whats the status of this issue? Can we close?

@kmcgill88 kmcgill88 added the waiting for response Waiting for customer response label Aug 13, 2019
@theneshfmt
Copy link
Author

I've switched to different plugin, so closing this.

@Purus
Copy link

Purus commented Aug 14, 2019 via email

@theneshfmt
Copy link
Author

Hi @Purus I'm using flutter_google_ad_manager.

@Purus
Copy link

Purus commented Aug 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Only effects Android waiting for response Waiting for customer response
Projects
None yet
Development

No branches or pull requests

5 participants