joshuajnoble / blepdroid

Bluetooth Low Energy for Processing Android
38 stars 11 forks source link

Error: getFragmentManager()Landroid/app/FragmentManager; in class Lprocessing/core/PApplet; #6

Open W2009 opened 6 years ago

W2009 commented 6 years ago

Hi,

While tried to use library in processing 3.3.6 I got below error:

FATAL EXCEPTION: Animation Thread
Process: processing.test.sayhi, PID: 7953
java.lang.NoSuchMethodError: No virtual method getFragmentManager()Landroid/app/FragmentManager; in class Lprocessing/core/PApplet; or its super classes (declaration of 'processing.core.PApplet' appears in /data/app/processing.test.sayhi-1/base.apk)
    at blepdroid.Blepdroid.<init>(Blepdroid.java:293)
    at processing.test.sayhi.sayhi.setup(sayhi.java:46)
    at processing.core.PApplet.handleDraw(Unknown Source)
    at processing.core.PSurfaceNone.callDraw(Unknown Source)
    at processing.core.PSurfaceNone$AnimationThread.run(Unknown Source)

I would appreciate for information how to deal with it.

skorh commented 6 years ago

same for me. It used to work about a year ago....

ghost commented 6 years ago

The problem seems to be due to the Processing Android Mode version change from version 3 to version 4. See also https://github.com/processing/processing-android/wiki/Core-Library-Structure