IDE: Eclipse
Desktop Windows 7
Simulator
Device Android
Hi,
I've a problem with building my android app including bouncy castle.
I've put the file BouncyCastleCN1Lib.cn1lib in my lib directory.
After that I've started "CodenameOne -> Refresh Libs".
All worked fine and I can use the lib localy without any problems.
The app works fine in the simulator.
Now I've started "CodenameOne -> Send Android Build".
The build has been started correctly, but the build crashes with the following error:
...
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.engines.AESEngine
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.engines.AESEngine
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.params.KeyParameter
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.params.KeyParameter
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.DataLengthException
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.InvalidCipherTextException
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
Warning: com.workflow.AES_BC: can't find referenced class org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher
...
Warning: there were 14 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(
http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning: Exception while processing task java.io.IOException: Please correct the above warnings first.
:transformClassesAndResourcesWithProguardForRelease FAILED
:transformClassesAndResourcesWithProguardForRelease (Thread[Daemon worker,5,main]) completed. Took 5.445 secs.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':transformClassesAndResourcesWithProguardForRelease'.
> java.io.IOException: Please correct the above warnings first.
...
Is there anything I've forgotten ? A setup or something like that ?
Thanks for your help!
kind regards,
Torsten