i followed the unity \"tanks!\" tutorial and now i\'m trying to port the game on Android, it\'s my first time on Unity, now when it\'s going to build the APK unity tells me
If you execute jdeps
on your application, you would be able to see that sun.misc.BASE64Encoder
has been deprecated and can be replaced with java.util.Base64 which is there since JDK 1.8.
The migration guide reads this as well :
A few
sun.*
APIs have been removed in JDK 9. Notably,sun.misc.BASE64Encode
r andsun.misc.BASE64Decoder
have been removed. Instead, use the supportedjava.util.Base64
class, which was added in Java SE 8.
In your case, since you rely on third parties(android sdktools) which themselves haven't resolved this. I'm afraid you might have to stick with 1.8 and in the meanwhile, this can be reported to their trackers once they plan to migrate their artifacts.
Of course, this also means you would have to at some point in time upgrade to using their Java 9 compatible version of the jar if and when they plan to release.
Update : This can be tracked on Unity#956425 for further updates.