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

Building Conscrypt #1129

Closed
frankmueller410 opened this issue Apr 19, 2023 · 2 comments
Closed

Building Conscrypt #1129

frankmueller410 opened this issue Apr 19, 2023 · 2 comments

Comments

@frankmueller410
Copy link

frankmueller410 commented Apr 19, 2023

  • JDK 8
  • Linux Ubuntu 22.04 x86_64

I have an issue, building this project on my local machine. When I clone this repository with the version 2.0.0, I got the following error:

-----------
* What went wrong:
Execution failed for task ':conscrypt-api-doclet:compileJava'.
> java.lang.ClassNotFoundException: com.google.errorprone.ErrorProneCompiler$Builder

Another error is appearing, when I use the master branch with the same specs:

* What went wrong:
A problem occurred configuring root project 'conscrypt'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:7.4.0.
     Required by:
         project :
      > No matching variant of com.android.tools.build:gradle:7.4.0 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.5' but:
          - Variant 'apiElements' capability com.android.tools.build:gradle:7.4.0 declares a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'javadocElements' capability com.android.tools.build:gradle:7.4.0 declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'runtimeElements' capability com.android.tools.build:gradle:7.4.0 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
              - Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
              - Other compatible attribute:
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.5')
          - Variant 'sourcesElements' capability com.android.tools.build:gradle:7.4.0 declares a runtime of a component, and its dependencies declared externally:
              - Incompatible because this component declares documentation and the consumer needed a library
              - Other compatible attributes:
                  - Doesn't say anything about its target Java version (required compatibility with Java 8)
                  - Doesn't say anything about its elements (required them packaged as a jar)
                  - Doesn't say anything about org.gradle.plugin.api-version (required '7.

Here are my versions, that I used for the rebuild this error messages:

  • JDK 8
  • SDK 34.0.0
  • NDK 21.0.6113669
  • CMake 3.6.4111459
  • C++ 11.3.0

Maybe is use the wrong versions to build this project via "./gradlew assemble". In the BUILDING.md file I cannot see any version hints for these building tools.
Maybe you guys can help me with this issue. Thanks a lot!

@prbprbprb
Copy link
Collaborator

As per the pre-reqs, Gradle needs JDK 11 to build this project. And currently it also needs JDK 8 for the actual compilation (we'll fix that). So you'll need your JAVA_HOME to point at JDK11 but also to have JDK 8 available somewhere that Gradle can find it.

@frankmueller410
Copy link
Author

That helped me, thank you very much!

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

2 participants