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

build issues #3196

Closed
Xipro opened this issue Apr 8, 2021 · 7 comments
Closed

build issues #3196

Xipro opened this issue Apr 8, 2021 · 7 comments

Comments

@Xipro
Copy link

Xipro commented Apr 8, 2021

I want used 'gradlew clean build' to build a android apk,but:

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':owncloudApp:compileReleaseJavaWithJavac'.

Could not resolve all task dependencies for configuration ':owncloudApp:releaseCompileClasspath'.
Could not resolve project :owncloud-android-library:owncloudComLibrary.
Required by:
project :owncloudApp > project :owncloudData
> No matching configuration of project :owncloud-android-library:owncloudComLibrary was found. The consumer was configured to find an API of a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release', attribute 'org.jetbrains.kotlin.platform.type' with value 'androidJvm' but:
- None of the consumable configurations have attributes.

So,what can i do for this problem?

@hannesa2
Copy link
Contributor

hannesa2 commented Apr 8, 2021

git submodule update --init

@Xipro
Copy link
Author

Xipro commented Apr 8, 2021

I cant understand?what did i miss?

@abelgardep
Copy link
Contributor

Hi, did you clone the repository using the --recursive clause?

Follow the setup guide and tell us if something is still wrong.

@Xipro
Copy link
Author

Xipro commented Apr 8, 2021

No,i dont ,so i will try and thankyou!

@Xipro
Copy link
Author

Xipro commented Apr 8, 2021

Unsupported class file major version 60.
i used jdk-16-16-ga.x86_64,is this the reason?

@abelgardep
Copy link
Contributor

Yes, that's it. Currently, we use gradle v6.8.1 and it does not support Java 16.
You can take a look at gradle/gradle#13481

@Xipro
Copy link
Author

Xipro commented Apr 8, 2021

I got it and thankyou!

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