java.util.Random is implemented. The others two are not (I don't know where 
you see them in the API). The reason it works in the simulator is that the 
simulator is using the oracle java JVM installed in your computer (that 
supports the full java API obviously). On devices, only parts of the java 
API that have been ported to CN1 will work (as CN1 do not support the full 
java 
API: 
https://www.codenameone.com/blog/why-we-dont-support-the-full-java-api.html) 
exept from Android where it will support the full android java API (So it 
should be possible to make an android build that uses these 2 missing (in 
CN1) classes as they exists in the android java API. But it is really not 
recommanded to use classes that are not part of the CN1 api as it would not 
work on other platforms like iOS. I guess the build server is watching for 
this whatever the build target and that is why it rejected your build...). 
On any IDE supporting the CN1 plugin (Netbeans, IntelliJ, Eclipse) you 
should see an error if you try to import a class that do not exists in the 
CN1 API though (so detecting unsupported imports should be trivial)


On Friday, April 20, 2018 at 1:28:43 AM UTC+2, [email protected] 
wrote:
>
> I'm trying to use java.util.Locale, java.util.Random, and 
> java.util.Objects but when I try and submit an Android build it fails 
> saying those symbols can't be found.  It seems like from the API you have 
> those should be there so I must be doing something wrong, yeah?  I need 
> some help.  Using Intellij IDEA and latest of everything on Windows 10.
>
> It is exceedingly baffling that this runs in the simulator yet clearly it 
> should not if I'm not able to submit it for a build.
>

-- 
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].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/4549a4e4-0e00-4131-906e-e2da71a4cdd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to