APDE icon indicating copy to clipboard operation
APDE copied to clipboard

APDE crashes when importing libraries

Open TheUltimateKrtek opened this issue 6 years ago • 9 comments

Processing for Android crashes when importing a compressed library. Message after opening processing again: Error occurred restoring state, likely caused by a crash in an activity further down the hierarchy

TheUltimateKrtek avatar Apr 20 '18 22:04 TheUltimateKrtek

@TheUltimateKrtek Which library causes the crash, or is it all libraries? What device and Android version are you using?

It would be good to fix these crashes, but for the time being you should still be able to install libraries manually.

Calsign avatar Apr 21 '18 08:04 Calsign

I tried Sound, Net, SelectFile, Combinatorics and Cassette. All of them caused APDE to crash. I have Samsung Galaxy S8 with Android 8.0 Oreo.

TheUltimateKrtek avatar Apr 21 '18 08:04 TheUltimateKrtek

You will have to search firstly if the library works in Android mode on your PC. The Sound lib for instance doesn't. See: https://github.com/processing/processing-android/issues/150 The cassette lib works well on Kitkat 4.4. When you install the 'lib'.mester.zip, you have to manually remove the word master of the sketchbook/library directory.. Then the lib will work and appear in the 'manage libraries' page.

EmmanuelPil avatar Jun 07 '18 12:06 EmmanuelPil

As for the SelectFile lib APDE complains "A poor formated library" And really the jar and java files are not in the lib directory, but elsewhere. Just to save me some time; how did you reformated it?

EmmanuelPil avatar Jun 07 '18 13:06 EmmanuelPil

OK. The author of the selectFile lib gave me the correct (not Github) link. It's http://andrusiv.com/android-select-file/download/SelectFile.zip He will change the link on the Processing library page. I have tested this on Kitkat 4.4 and Lollipop 5.1 working well. I will test the other libs soon.

EmmanuelPil avatar Jun 12 '18 17:06 EmmanuelPil

@EmmanuelPil Thanks for reaching out to the author! I didn't even know that the library was still being maintained.

Calsign avatar Jun 12 '18 17:06 Calsign

The Combinatorics lib seems not to be maintained anymore but is also working well on KitKat and Lollipop (using APDE 0.5.0 pre-2). But instead of downloading the Github master-zip you need to download an internal zip here: https://github.com/fjenett/combinatorics/tree/master/releases

EmmanuelPil avatar Jun 16 '18 10:06 EmmanuelPil

Hi, Im making an app with APDE, but my phone broke last week. So when a installed again APDE and tried to install again the libraries, it crashed. I think is the version of Android or APDE, because with my previous phone i had android 5.0 and the APDE was installed in september 2018, and it worked fine. Has anyone discovered how to solve this?, because im in hurry.

JoaquinPine avatar May 26 '19 20:05 JoaquinPine

I plan to buy a new phone next month. So I can only test this until then. Meanwhile I tested the Geomerative library and it is such a great library. Only not that well commented, but if you want to work with the SVG structure extensively, it is really worth it.

EmmanuelPil avatar Jun 28 '19 17:06 EmmanuelPil