Skip to content

[Help Wanted]: Failed to transform tslocationmanager-v21-3.6.5.aar #2272

@flaviolima9904

Description

@flaviolima9904

Required Reading

  • Confirmed

Plugin Version

4.18.4

Mobile operating-system(s)

  • iOS
  • Android

What do you require assistance about?

I am using React native 0.72.17.

After I following Auto-linking Setup after run yarn android I got build failed. I need some help.

ERROR:/home/flaviom/.gradle/caches/transforms-3/f7e5a7975a6a40ba76402d484facba90/transformed/jetified-tslocationmanager-v21-3.6.5-runtime.jar: D8: java.lang.NullPointerException: Cannot invoke "String.length()" because "" is null

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeExtDexDevDebug'.

Could not resolve all files for configuration ':app:devDebugRuntimeClasspath'.
Failed to transform tslocationmanager-v21-3.6.5.aar (com.transistorsoft:tslocationmanager-v21:3.6.5) 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=24, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: /home/flaviom/.gradle/caches/transforms-3/f7e5a7975a6a40ba76402d484facba90/transformed/jetified-tslocationmanager-v21-3.6.5-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.

BUILD FAILED in 29s
error Failed to install the app.
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

My android/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 34
targetSdkVersion = 34
ndkVersion = "23.1.7779620"
firebaseMessagingVersion = "21.1.0"
googlePlayServicesLocationVersion = "21.0.1" // Or higher.
appCompatVersion = "1.4.2" // Or higher. Required for new AndroidX compatibility.
pdfViewerVersion = "3.2.0-beta.1"
pdfViewerRepo = "com.github.mhiew"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle")
classpath("com.google.gms:google-services:4.4.2")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}

allprojects {
repositories{
maven {
url 'https://jcenter.bintray.com'
}
// Required for react-native-background-geolocation
maven { url("${project(':react-native-background-geolocation').projectDir}/libs") }
maven { url 'https://developer.huawei.com/repo/' }
// Required for react-native-background-fetch
maven { url("${project(':react-native-background-fetch').projectDir}/libs") }
}
}

[Optional] Plugin Code and/or Config

[Optional] Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions