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.NoClassDefFoundError: Failed resolution of: Ljavax/annotation/processing/AbstractProcessor #517

Open
Pabloku opened this issue Sep 10, 2024 · 2 comments
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed

Comments

@Pabloku
Copy link

Pabloku commented Sep 10, 2024

Hi!

I'm trying to use this library in an Android project using Android Studio. I was able to compile it and I'm trying to execute this piece of code:

     Whatsapp.mobileBuilder().newConnection(600123123)
            .device(CompanionDevice.android(false))
            .registered()
            .get()
            .addNewChatMessageListener { first, second ->
                Log.d("Test", "Whatsapp msg received: ${second.message().content()}")
            }
            .connect()

But I get this error:

FATAL EXCEPTION: main
Process: com.example.whatsappreader, PID: 30185
java.lang.NoClassDefFoundError: Failed resolution of: Ljavax/annotation/processing/AbstractProcessor;
	at com.example.whatsappreader.MainActivity.onCreate(MainActivity.kt:35)
	at android.app.Activity.performCreate(Activity.java:9019)
	at android.app.Activity.performCreate(Activity.java:8997)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1528)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4021)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4226)
	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
	at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
	at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2635)
	at android.os.Handler.dispatchMessage(Handler.java:107)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.app.ActivityThread.main(ActivityThread.java:8700)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
Caused by: java.lang.ClassNotFoundException: Didn't find class "javax.annotation.processing.AbstractProcessor" on path: DexPathList[[zip file "/data/app/~~iAMEIiCj6gyg7E5WYKLbnw==/com.example.whatsappreader-6lMb0Q2svoIUoatdpTzZcg==/base.
	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:259)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:637)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
	... 18 more

Could you give me a hand?

Thanks very much!

@Auties00 Auties00 mentioned this issue Sep 14, 2024
@Auties00
Copy link
Owner

Android is not supported and I don't have an android device on hand so I can't help you
But if you fix it let me know
Also keep in mind that i forgot to push some files in 0.0.7 so you can't compile from source directly
Will be fixed in 0.0.8, eta next week

@Auties00 Auties00 added the waiting triage A maintainer acknowledged the issue, further discussion is needed label Sep 14, 2024
@legendsayantan
Copy link

Same issue in hand, would be nice if there were plans to add android support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting triage A maintainer acknowledged the issue, further discussion is needed
Projects
None yet
Development

No branches or pull requests

3 participants