#java.lang.NoClassDefFoundError: Failed resolution of: Ljava/beans/PropertyDescriptor

1 messages · Page 1 of 1 (latest)

flat geyser
#

Can someone help me with solving this error?

https://github.com/powermock/powermock/issues/1062

The problem here is that Google didn't implement the full Java Beans system on Android. There are a few different ways around it, I've submitted a PR with a fairly straightforward drop-in replacement for Java Beans.

I'll see if I can replicate what he did for the PR here: https://github.com/powermock/powermock/pull/1067

GitHub

I am using Powermock: ` // androidx implementation 'androidx.appcompat:appcompat:1.0.2' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'jun...

GitHub

The Android implementation of java.beans does not include everything which gives rise to error messages like this:
E/TestRunner: java.lang.NoClassDefFoundError: Failed resolution of: Ljava/beans/In...

vast basaltBOT
#

<@&987246623988019200> please have a look, thanks.

flat geyser
#

I think this means, I need to install openbeans

#

I added this to my build.gradle file, and it did not change the results/behavior (I still get the same error):

implementation 'me.champeau.openbeans:openbeans:1.0.2'
#

here's the error btw

vast basaltBOT
flat geyser
#

oh. I would need to change the library

#

so that it imports the openbeans instead

#

I guess I need to fork the library now

#

TODO

#

wait, i think it's being used in a library used by the library

#

in which case, i'd need to fork both libraries

#

no nvm, thankfully not

flat geyser
#

.... I forked the library and literally did nothing to it. And all I did is change

implementation 'com.github.tcheeric:nostr-java:v0.004.01'

to

implementation 'com.github.kpence:nostr-java:v0.004.01'
#

but it doesn't work if I use my repository

#

It won't resolve any of the references to the library if I use my repository

#

i guess updates to jitpack have broken newer repositories in their database

vast basaltBOT
#

@flat geyser

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure 👍

flat geyser
#

.

#

oh wait this is solved