Closed jaranflaath closed 3 years ago
I'm guessing you are applying com.betomorrow.appcenter
using the Plugins DSL because I ran into a similar error. This is due to Android Gradle Plugin being added to the buildscript classpath with an older version of okhttp. To workaround this, add this plugin to buildscript classpath to force gradle to resolve to the newer version. See similar issue from Apollo.
I am not using the Plugin DSL, I am adding the plugin to classpath under buildscript, then using apply
. However, I had the dependency added in my app/build.gradle
file, but moving it to the global build.gradle
file seems to have resolved the issue. At first I added it before the android-gradle-plugin
dependency, but also testing with it after android-gradle-plugin
seems to resolve the issue as well 🤔
It may be that I had the dependency in the wrong place all along?
If this is the only issue, any chance we can get an alpha-version of the plugin in the central repository?
Seems like upgrading the Gradle plugin-publish-plugin fixed the build error with JDK11. It is now failing on missing credentials, which I guess may only be available for builds on main? Let me know if there are additional fixed I need to do on this :)
Seems to be working fine after the changes in 1.3.0 to support AGP 4.2 👍 Closing this.
I have made upgrades to the plugin in an attempt to make it compatible with AGP 7 and Gradle 7.
I keep getting a conflict in OkHttp when including the updated version of the plugin in my project, which I have tried my best to resolve, but so far been unsuccessful. Perhaps you have some insights on the error below?
Hope these changes can be useful in terms of getting out an early preview version of the plugin that supports the latest version of Android Gradle Plugin.
Here is the stacktrace for the error: