When I use this code:
val km = getSystemService(Context.KEYGUARD_SERVICE) as KeyguardManager;
I get the same error code cannot resolve symbol for val and as.
You are using kotlin based keyword 'val' which is unavailable in the context of java.
use the following to resolve it:
KeyguardManager km = (KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE);
Val ValidMobileNumber="0123456789" Val ValidPassword="thanos" android app开发中的获取和错误
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.