Home/Support/Support Forum/Androi java.lango.NoDefClassFoundErro.Exception

Androi java.lango.NoDefClassFoundErro.Exception

0 votes
Hello!

I have tried to use the daddon-digi_sdk_addon-digi-22 in the example of XBeeManagerSampleApplication

But, I'm not be able to see the serial ports due to an java.lango.NoDefClassFoundErro.Exception is thrown when the code tries to instantiate the SerialPortManager class.

The compiler doesn't throw any exception, the exception happens at execution time.

If I decompile with android the class com.digi.android.serial.SerialPortManager

The constructor come with that:

public SerialPortManager(Context var1)
{
throw new RuntimeException("stub");
}

I don't now if ti happens becuase:
My Android SDK works wit JDK 8, and not with JDK 7 like Digi tutorial indicates.

I changed from de add-ons folder to the local libs folder of the project the com.digi.android.jar (even I don't errase from add-ons folder)
asked Feb 6, 2017 in RF Solutions and XBee by Molas89 New to the Community (4 points)
recategorized Feb 7, 2017 by LeonidM

Please log in or register to answer this question.

1 Answer

0 votes
I'm getting the same exception, when I tried to instantiate SerialPortManagerContext class, I received RuntimeException,
The constructors are:

public SerialPort openSerialPort(String var1) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException {
throw new RuntimeException("stub");
}

public SerialPort openSerialPort(String var1, int var2, int var3, int var4, int var5, int var6, int var7) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException {
throw new RuntimeException("stub");
}

public SerialPort openSerialPort(String var1, SerialPortParameters var2) throws NoSuchPortException, PortInUseException, UnsupportedCommOperationException {
throw new RuntimeException("stub");
}
answered May 17, 2017 by Molas89 New to the Community (4 points)
...