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

java.lang.NullPointerException #47

Open
iammannan opened this issue Feb 1, 2024 · 5 comments
Open

java.lang.NullPointerException #47

iammannan opened this issue Feb 1, 2024 · 5 comments

Comments

@iammannan
Copy link

I tried to add to my project. But I can't

image

@rbri
Copy link
Member

rbri commented Feb 1, 2024

Sorry but without some more information i can' help here....

@iammannan
Copy link
Author

I tried this library add to my project. Gradle synced successfully but, while build, it says that error.

@iammannan
Copy link
Author

dependencies {

//jsoup
//implementation group: 'org.jsoup', name: 'jsoup', version: '1.17.1'
//htmlunit
implementation group: 'org.htmlunit', name: 'htmlunit3-android', version: '3.7.0'
//lottie animation
def lottieVersion = "5.2.0"
implementation "com.airbnb.android:lottie:$lottieVersion"

implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.11.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment:2.7.6'
implementation 'androidx.navigation:navigation-ui:2.7.6'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

}

@iammannan
Copy link
Author

Execution failed for task ':app:mergeExtDexDebug'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform commons-text-1.11.0.jar (org.apache.commons:commons-text:1.11.0) 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=28, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\manna.gradle\caches\modules-2\files-2.1\org.apache.commons\commons-text\1.11.0\2bb044b7717ec2eccaf9ea7769c1509054b50e9a\commons-text-1.11.0.jar.
> Error while dexing.
Failed to transform commons-io-2.15.0.jar (commons-io:commons-io:2.15.0) 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=28, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for DexingNoClasspathTransform: C:\Users\manna.gradle\caches\modules-2\files-2.1\commons-io\commons-io\2.15.0\5c3c2db10f6f797430a7f9c696b4d1273768c924\commons-io-2.15.0.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.

@rbri
Copy link
Member

rbri commented Feb 2, 2024

Looks like the two libs are not 'compatible' with the android version you are compiling for.
You should be able to overwrite the dependencies for these two to older versions.

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