Closed bunjix closed 3 years ago
@bunjix What Gradle version are you on? I'm seeing this with Arctic Fox Canary 13, AGP 7.0.0-alpha13
, gradle-6.8.2
.
I can't use Arctic Fox Canary 14, AGP 7.0.0-alpha14
, gradle-7.0-rc-1
(or gradle-7.0-rc-2
) due to an incompatibility issue with com.google.firebase:firebase-appdistribution-gradle:2.1.0
which doesn't support gradle-7.0
yet...
Also, I can't use TripleT 3.4.0
or 3.4.0-agp7.0
with com.google.firebase:firebase-appdistribution-gradle:2.1.0
due to a breaking change in com.google.api-client:google-api-client:1.31.2
(Jackson to GSON) as it breaks the app distribution plugin (issue that the Firebase team needs to resolve).
Basically, I'm trying to use the app distribution plugin, but when I run the following command:
./gradlew appDistributionLogin
I get this error:
Execution failed for task ':app:appDistributionLogin'.
> com/google/api/client/json/jackson2/JacksonFactory
...
Caused by: java.lang.ClassNotFoundException: com.google.api.client.json.jackson2.JacksonFactory
./gradlew buildEnvironment
with only app distribution plugin:
\--- com.google.firebase:firebase-appdistribution-gradle:2.1.0
+--- com.google.api-client:google-api-client:1.30.9
Now also with TripleT plugin 3.4.0:
\--- com.google.firebase:firebase-appdistribution-gradle:2.1.0
+--- com.google.api-client:google-api-client:1.30.9 -> 1.31.3 (*)
Since Jackson was removed in com.google.api-client:google-api-client:1.31.2
, this explains it. It looks like the Firebase distribution plugin needs updated with at least version 1.31.2
of com.google.api-client:google-api-client
.
I'm using the latest gradle version 7.0.0
@bunjix I don't see how your error is possible, GPP 3.4.0-agp7.0 was compiled with AGP 7.0.0-alpha14. Are you 100% sure you aren't apply the plugin in multiple places with different versions?
@Aidanvii7 you should be able to fix that issue by manually including jackson: com.google.http-client:google-http-client-jackson2:1.38.0
.
@bunjix actually, I think you aren't using AGP 7.0.0-alpha14
. SingleArtifact$BUNDLE
is what was added in alpha 14.
Ok, i'm sorry, this build was using AGP 7.0.0-alpha12
.
I close this issue, thanks for you work.
As for this issue: https://github.com/Triple-T/gradle-play-publisher/issues/930 when using from AGP 7.0.0-alpha14 and gradle-play-publisher version 3.4.0-agp7.0, Play Publisher task 'publishAlphaReleaseBundle' causes the following error:
Command:
./gradlew publishAlphaReleaseBundle
Error message:
Stacktrace