Unity Failed to Build apk Android

后端 未结 1 509
渐次进展
渐次进展 2021-01-06 14:07

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

相关标签:
1条回答
  • 2021-01-06 14:19

    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.BASE64Encoder and sun.misc.BASE64Decoder have been removed. Instead, use the supported java.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.

    0 讨论(0)
提交回复
热议问题