-
Notifications
You must be signed in to change notification settings - Fork 144
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
Android: DexMerge Failed #512
Comments
I have setup an Android project and did not get this error. Can you please give more information about source and target java version, JDK, etc. Did you try to clear cache? |
@mwiede |
I know little about Android development and Gradle, but it sounds to me like if Gradle 8.x works and 7.x doesn't, then perhaps you should be using 8.x? |
Is there any specific changes after 0.2.12 that gradle 7 does not support? I think JSch has nothing to do with gradle. It has dependency with Java version and I am using Java 17 which is OK. |
Maybe 17c93ea and gradle/gradle#27856 |
Major gradle updates usually require major changes in gradle projects, especially on Android |
I am having a similar issue on gradle 7, gonna use 0.2.12 until it's fixed. My project is too big and updating gradle would be painful. |
It's unlikely that any "fix" for this will be coming from some future JSch release, as this is a Gradle problem, not a problem with JSch. |
@wiedemam-VU nope, still fails |
I also encountered this problem in the latest version 0.2.20. How can I solve it? |
I am adding the lib to my android project which has following gradle configuration:
build:gradle:7.4.2
But when I build the project I get following error
`> Task :app:mergeDexDebug FAILED
AGPBI: {"kind":"error","text":"java.lang.NullPointerException","sources":[{"file":"/Users/asad/.gradle/caches/modules-2/files-2.1/com.github.mwiede/jsch/0.2.16/18efa961263b774dc98ea267ab57f8aeaa4152b1/jsch-0.2.16.jar"}],"tool":"D8"}
Execution failed for task ':app:mergeDexDebug'.
The text was updated successfully, but these errors were encountered: