question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ambiguous method overloading for method com.google.android.gms.oss.licenses.plugin.LicensesTask_Decorated#addLicensesFromPom

See original GitHub issue

I was using the plugin 'com.google.android.gms:oss-licenses-plugin:0.10.0', but I was getting the message This app does not have any open source licenses in OssLicensesMenuActivity.

I’ve updated the plugin version to 0.10.1 as mentioned here https://github.com/google/play-services-plugins/issues/105, but now the build fails.

This is the Output:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:generateLicenses'.
> Ambiguous method overloading for method com.google.android.gms.oss.licenses.plugin.LicensesTask_Decorated#addLicensesFromPom.
  Cannot resolve which method to invoke for [null, class java.lang.String, class java.lang.String] due to overlapping prototypes between:
  	[class java.io.File, class java.lang.String, class java.lang.String]
  	[class java.lang.String, class java.lang.String, class java.lang.String]

I’m using Gradle plugin 3.5.3 and Google Services 4.3.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:6

github_iconTop GitHub Comments

1reaction
aldoKelviantocommented, Jan 24, 2020

Hi, I’m facing the same issue too 😢

Screen Shot 2020-01-24 at 09 15 12
1reaction
mkeedacommented, Jan 21, 2020

I am facing same issue🤮🤮🤮

Read more comments on GitHub >

github_iconTop Results From Across the Web

android - Gradle fails with "Ambiguous method overloading for ...
Ambiguous method overloading for method java.io.File#. Cannot resolve which method to invoke for [null, class java.lang.String] due to ...
Read more >
Ambiguous method overloading for method java.io.File#<init ...
Issue 36996225 · Gradle plugin: Ambiguous method overloading for method java.io.File#<init>. · Issue metadata.
Read more >
Include open source notices | Google Play services
To comply with the license requirements of open source libraries, you as a developer are responsible for appropriately displaying the notices for the...
Read more >
[midPoint] Ambiguous method overloading - Mailing Lists
GroovyRuntimeException(Ambiguous method overloading for > method > org.identityconnectors.common.security.SecurityUtil#decrypt.
Read more >
Simple Display of Open Source License Info? | by Nate Ebel
Apply the plugin by adding the following line: apply plugin: 'com.google.gms.oss.licenses.plugin' · Declare the library dependency: compile 'com.google.android.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found