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

Upgrading to Android Studio Arctic Fox Canary 3 breaks Gradle build #23

Closed
mreichelt opened this issue Dec 15, 2020 · 7 comments
Closed

Comments

@mreichelt
Copy link
Contributor

Android Studio Arctic Fox Canary 2 works fine - but upgrading to Canary 3 (and upgrading Gradle to 6.8-rc1 and android plugin to 7.0.0-alpha03 breaks the build:

PeopleInSpace git:(master) ✗ ./gradlew assemble                         

> Configure project :backend

The 'org.jetbrains.kotlin.platform.*' plugins are deprecated and will no longer be available in Kotlin 1.4.
Please migrate the project to the 'org.jetbrains.kotlin.multiplatform' plugin.
See: https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html

> Configure project :common
To take advantage of the new functionality for Cocoapods Integration like synchronizing with the Xcode project 
and supporting dependencies on pods, please install the `cocoapods-generate` plugin for CocoaPods 
by calling `gem install cocoapods-generate` in terminal. 

More details are available by https://github.com/square/cocoapods-generate

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Configuration with name 'testApi' not found.

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.8-rc-1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 735ms
@mreichelt
Copy link
Contributor Author

I tried to find testApi, but it seems that is not used by the gradle files of PeopeInSpace. Maybe by some plugin that is used?

@mreichelt
Copy link
Contributor Author

Resetting the gradle files to before the upgrade gets ./gradlew assemble running - still investigating.
Next up, I'll try to upgrade Gradle to 6.8-rc1 and see if the build works.

@mreichelt
Copy link
Contributor Author

Upgrading to 6.8-rc1 seems to work fine - I added the line

distributionUrl=https://services.gradle.org/distributions/gradle-6.8-rc-1-bin.zip

to gradle-wrapper.properties, and it still compiles.

@joreilly
Copy link
Owner

seems to be related to https://kotlinlang.slack.com/archives/C0B8M7BUY/p1607989735365000

which references https://issuetracker.google.com/issues/175496966

@mreichelt
Copy link
Contributor Author

Hmm, so the only option right now would be to roll back to Android Studio Arctic Fox Canary 2.

Or maybe we downgrade the project again to a more stable Android Studio release? What was the reason to use 4.3 in the first place, in contrast to the more stable 4.2?

@mreichelt
Copy link
Contributor Author

Downgrading to Canary 2 for now.

@solidogen
Copy link
Contributor

@mreichelt Compose works only on canary builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants