Skip to content
This repository has been archived by the owner on Feb 11, 2022. It is now read-only.

Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext #318

Closed
firepmi opened this issue May 30, 2020 · 11 comments
Closed

Comments

@firepmi
Copy link

firepmi commented May 30, 2020

I got new issue on Android Studio 4.0

Cause: org/gradle/api/internal/java/usagecontext/LazyConfigurationUsageContext

Please let me know how I can fix this issue.

@StefMa
Copy link
Contributor

StefMa commented May 31, 2020 via email

@wang-li
Copy link

wang-li commented Jun 1, 2020

@StefMa Can you indicate any alternative to this plugin?

@StefMa
Copy link
Contributor

StefMa commented Jun 1, 2020

Sure. To create the publication use the build in support by the AGP: https://developer.android.com/studio/build/maven-publish-plugin

Then you can use the bintray gradle plugin to publish the publication to bintray.

The latter is btw exactly what this plugin does.

@devpala
Copy link

devpala commented Jun 17, 2020

This issue has been resolved in Capacitor version 2.1.2.

ionic-team/capacitor#3003

Please update the Capacitor dependencies in package.json to version 2.1.2 and then in Android Studio click the button to sync the project with Gradle.

"@capacitor/android": "^2.1.2",
"@capacitor/core": "2.1.2",

@StefMa
Copy link
Contributor

StefMa commented Jun 18, 2020 via email

@marandaneto
Copy link
Contributor

@StefMa this plugin is still useful if you want to ship sources and javadocs for Android projects,
which is required by Maven Central, as Bintray has the ability to auto-sync with Maven central, I still find it useful even using newer AGP versions.

@StefMa
Copy link
Contributor

StefMa commented Jun 25, 2020

You can ship the sources and javadocs (and whatnot) without this plugin as well 🙃 .
But you're right. This will force you to setup all of this by yourself.
This plugin will take care of it; even if it still uses internal Gradle classes...

@marandaneto
Copy link
Contributor

yep, for JVM projects is very easy already with:

java {
    withJavadocJar()
    withSourcesJar()
}

but still, AGP should offer something like:

android {
    withJavadocJar()
    withSourcesJar()
}

then this plugin will lose its meaning.

@JarvanMo
Copy link

facing the same issue.

@panpf
Copy link

panpf commented Sep 11, 2020

I have modified some codes on the basis of this library to support Gradle 6.0+ and Android Gradle Plugin 4.0+, and then released a brand new library, you can try to see if it can solve your problem, https://github.com/panpf/bintray-publish

@mccccccmike
Copy link

I have modified some codes on the basis of this library to support Gradle 6.0+ and Android Gradle Plugin 4.0+, and then released a brand new library, you can try to see if it can solve your problem, https://github.com/panpf/bintray-publish

saved my life

dailystudio added a commit to dailystudio/devbricksx-android that referenced this issue Nov 5, 2020
…in (4.1.0);

[devbricksx][REL]: use com.github.panpf.bintray-publish:bintray-publish to adapt to latest gradle plugin; (refer to novoda/bintray-release#318)
[devbricksx][REL]: update version to 1.2.6;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants