Codenameone: Unable to find packages during build -


when build application following errors. can please let me know how resolve it. application needs supported on platforms (andriod, ios, windows) , don't want write native code platforms separately.   java:4: error: package java.lang.reflect not exist         import java.lang.reflect.undeclaredthrowableexception; java:6: error: package javax.crypto not exist         import javax.crypto.mac;              ^ 7: error: package javax.crypto.spec not exist        import javax.crypto.spec.secretkeyspec; java:48: error: cannot find symbol mac hmac; 50: error: cannot find symbol        [javac]              hmac = mac.getinstance(crypto); 

^ java:53: error: cannot find symbol [javac] secretkeyspec mackey = ^ [javac] symbol: class secretkeyspec [javac] location: class tokengenerator java:55: error: cannot find symbol [javac] new secretkeyspec(keybytes, "raw"); ^ [javac] symbol: class secretkeyspec [javac] location: class tokengenerator java:61: error: cannot find symbol [javac] } catch (generalsecurityexception gse) { [javac] ^ java:63: error: cannot find symbol [javac] throw new undeclaredthrowableexception(gse); [javac] ^ symbol: class undeclaredthrowableexception [javac] location: class tokengenerator

those packages aren't supported codename one. reflection can't implemented in performant way on devices , shouldn't used in general since conflicts obfuscation recommended best practice mobile.

crypto large on designed package export restrictions , reflection dependencies. have cn1lib extension bouncy castle.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -