Hi Garet

I used the BlueThooh codename one lib and didn't have any problem. The 
project work fine for me. I added the BT and Json Required Libraries from 
Codename One Settings (libs option).

This are my libs size

C:\dev\eclipseOxigen\OxigenApp\lib>ls -la
total 18736
drwxrwxrwx   1 user     group           0 Jul  3 20:47 .
drwxrwxrwx   1 user     group           0 Jul  3 20:47 ..
-rw-rw-rw-   1 user     group       12380 Jul  3 20:47 
AnimatedGifSupport.cn1lib
-rw-rw-rw-   1 user     group          10 Jul  3 20:47 
AnimatedGifSupport.ver
-rw-rw-rw-   1 user     group     2264815 Jul  3 20:47 CLDC11.jar
-rw-rw-rw-   1 user     group       46807 Jul  3 20:47 CN1Bluetooth.cn1lib
-rw-rw-rw-   1 user     group          10 Jul  3 20:47 CN1Bluetooth.ver
-rw-rw-rw-   1 user     group       30564 Jul  3 20:47 CN1JSON.cn1lib
-rw-rw-rw-   1 user     group          10 Jul  3 20:47 CN1JSON.ver
-rw-rw-rw-   1 user     group     6129031 Jul  8 12:36 CodenameOne.jar
-rw-rw-rw-   1 user     group    10695991 Jul  8 12:36 CodenameOne_SRC.zip
drwxrwxrwx   1 user     group           0 Jul  3 20:47 impl



Best Regards Kandy

El miércoles, 28 de agosto de 2019, 14:32:17 (UTC+2), Gareth Murfin 
escribió:
>
> Im starting a contract today coding bluetooth in codenameone, so hopefully 
> someone can help in some way!!
>
> On Wednesday, August 28, 2019 at 12:35:31 AM UTC+1, Gareth Murfin wrote:
>>
>> actually on the device im still getting the error, im very confused right 
>> now, any thoughts??
>>
>>  Exception: java.lang.NoSuchMethodError - No direct method 
>> <init>(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
>> appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
>> W/System.err: java.lang.NoSuchMethodError: No direct method 
>> <init>(Ljava/util/Map;)V in class Lca/weblite/codename1/json/JSONObject; or 
>> its super classes (declaration of 'ca.weblite.codename1.json.JSONObject' 
>> appears in /data/app/com.pippa.hobmonitor-i555BGum4BjW27o1gIXtCQ==/base.apk)
>>
>> On Tuesday, August 27, 2019 at 10:13:24 PM UTC+1, Gareth Murfin wrote:
>>>
>>> Seems like it should be due to no json lib, but its there, then I 
>>> realised it was only 30k somehow soI grabbed it from here
>>>
>>> https://github.com/codenameone/CodenameOneLibs/tree/master/cn1libs
>>>
>>> that one was 85k... but now it wont compile  (complains that it cannot 
>>> find ca.weblite.codename1.json.JSONObject; ) , even after doing refresh cn1 
>>> libs. I cannot work out whats going wrong ive used the json lib hundreds of 
>>> times with no issue.
>>>
>>> On Tuesday, August 27, 2019 at 9:30:11 PM UTC+1, Gareth Murfin wrote:
>>>>
>>>> I compiled and sent this project to the server 
>>>> https://github.com/chen-fishbein/bluetoothle-codenameone/tree/master/BTDemo
>>>>
>>>> It runs fine but when I tap "initialise" I get this error
>>>>
>>>> "no such method error, no direct method java/util/map in class 
>>>> ca/weblite/codename1/json/JSonObject
>>>>
>>>> Any ideas?
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/9cf8b31f-7c56-48a0-8803-5c85837dcba5%40googlegroups.com.

Reply via email to