The provided code snippet cannot be compiled as it is written in Kotlin language but the file extension is '.java'. To resolve this issue, you have two options:

  1. Rewrite the code in Java: Replace the Kotlin syntax with equivalent Java code.
  2. Change the file extension to '.kt': If you intend to keep the Kotlin code, rename the file to use the '.kt' extension.

By addressing this discrepancy between the language used and the file extension, you can ensure successful compilation of your Android Splash Activity code.


原文地址: https://www.cveoy.top/t/topic/nj4G 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录