1
votes

I am building an app that uses bluetooth support. After adding the libs and refreshing as directed here https://github.com/chen-fishbein/bluetoothle-codenameone, Below is the error log

Compile is forcing compliance to the supported API's/features for maximum device compatibility. This allows smaller code size and wider device support

Compiling 4 source files to C:\Users\RuffCode\Documents\mpayment\build\tmp C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:14: error: package com.codename1.bluetoothle does not exist import com.codename1.bluetoothle.Bluetooth;

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:359: error: cannot find symbol private Bluetooth bt; symbol: class Bluetooth location: class StateMachine

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:222: warning: non-varargs call of varargs method with inexact argument type for last parameter; findCbAccounts().setModel(new DefaultListModel(new String[]{"No accounts"})); cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:229: warning: non-varargs call of varargs method with inexact argument type for last parameter; findCbAccounts().setModel(new DefaultListModel(new String[]{"No accounts"})); cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:306: warning: non-varargs call of varargs method with inexact argument type for last parameter; cmp.setModel(new com.codename1.ui.list.DefaultListModel(new String[]{"No accounts"})); cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:491: warning: non-varargs call of varargs method with inexact argument type for last parameter; cmp.setModel(new com.codename1.ui.list.DefaultListModel(new String[]{"Savings", "Loan"})); cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning

C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java:497: warning: non-varargs call of varargs method with inexact argument type for last parameter; cmp.setModel(new com.codename1.ui.list.DefaultListModel(new String[]{" "})); cast to Object for a varargs call cast to Object[] for a non-varargs call and to suppress this warning

Note: C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: C:\Users\RuffCode\Documents\mpayment\src\userclasses\StateMachine.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 2 errors 5 warnings

C:\Users\RuffCode\Documents\mpayment\build.xml:56: Compile failed; see the compiler error output for details. BUILD FAILED (total time: 1 second)

Any help and reason as to why it happened would be much appreciated. Thanks

1
For me, this is an import error. You are definitely sure that you didnt put that libs accidently under /target? - kaya

1 Answers

0
votes

cn1lib's are just zip files so make sure you downloaded the right file by verifying that it's a valid zip file.

You can use the new extension install tool to install the library more easily.