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 Error when trying to build the example project #1

Open
christianhujer opened this issue Nov 9, 2024 · 0 comments
Open

Build Error when trying to build the example project #1

christianhujer opened this issue Nov 9, 2024 · 0 comments

Comments

@christianhujer
Copy link

christianhujer commented Nov 9, 2024

When trying to build this example, I encounter the following error:

% ./gradlew build
Warning: This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
WARNING:We recommend using a newer Android Gradle plugin to use compileSdk = 34

This Android Gradle plugin (7.3.1) was tested up to compileSdk = 33

This warning can be suppressed by adding
    android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties

The build will continue, but you are strongly encouraged to update your project to
use a newer Android Gradle Plugin that has been tested with compileSdk = 34

> Task :app:mergeExtDexDebug FAILED
ERROR:/Users/christian.hujer/.gradle/caches/transforms-3/542511c9146e2cbf9bf41e7bb92d1806/transformed/jetified-camera-view-1.4.0-rc02-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null
ERROR:/Users/christian.hujer/.gradle/caches/transforms-3/95b781fc9a996656a751b96b5c2ef77c/transformed/jetified-camera-video-1.4.0-rc02-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null
ERROR:/Users/christian.hujer/.gradle/caches/transforms-3/229479f8740c128bcff2fcec7eeadd94/transformed/jetified-camera-camera2-1.4.0-rc02-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null
ERROR:/Users/christian.hujer/.gradle/caches/transforms-3/b35d4091be8ad014769a03e0468652b0/transformed/jetified-camera-core-1.4.0-rc02-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "<parameter1>" is null

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform camera-video-1.4.0-rc02.aar (androidx.camera:camera-video:1.4.0-rc02) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/christian.hujer/.gradle/caches/transforms-3/95b781fc9a996656a751b96b5c2ef77c/transformed/jetified-camera-video-1.4.0-rc02-runtime.jar.
         > Error while dexing.
   > Failed to transform camera-view-1.4.0-rc02.aar (androidx.camera:camera-view:1.4.0-rc02) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/christian.hujer/.gradle/caches/transforms-3/542511c9146e2cbf9bf41e7bb92d1806/transformed/jetified-camera-view-1.4.0-rc02-runtime.jar.
         > Error while dexing.
   > Failed to transform camera-camera2-1.4.0-rc02.aar (androidx.camera:camera-camera2:1.4.0-rc02) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/christian.hujer/.gradle/caches/transforms-3/229479f8740c128bcff2fcec7eeadd94/transformed/jetified-camera-camera2-1.4.0-rc02-runtime.jar.
         > Error while dexing.
   > Failed to transform camera-core-1.4.0-rc02.aar (androidx.camera:camera-core:1.4.0-rc02) to match attributes {artifactType=android-dex, asm-transformed-variant=NONE, dexing-enable-desugaring=true, dexing-enable-jacoco-instrumentation=false, dexing-is-debuggable=true, dexing-min-sdk=21, org.gradle.category=library, org.gradle.dependency.bundling=external, org.gradle.libraryelements=aar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Execution failed for DexingWithClasspathTransform: /Users/christian.hujer/.gradle/caches/transforms-3/b35d4091be8ad014769a03e0468652b0/transformed/jetified-camera-core-1.4.0-rc02-runtime.jar.
         > Error while dexing.

* 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

BUILD FAILED in 4s
21 actionable tasks: 2 executed, 19 up-to-date

System information:

% uname -a
Darwin XXXXXXXX 24.0.0 Darwin Kernel Version 24.0.0: Mon Aug 12 20:52:12 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T6020 arm64
% java --version
openjdk 11.0.24 2024-07-16 LTS
OpenJDK Runtime Environment Zulu11.74+15-CA (build 11.0.24+8-LTS)
OpenJDK 64-Bit Server VM Zulu11.74+15-CA (build 11.0.24+8-LTS, mixed mode)
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

1 participant