java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{ity}: java.lang.IllegalStateException: System services not available to Activities before onCreate()

java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.example.myapplication/com.example.myapplication.MainActivity}: java.lang.IllegalStateException: System services not available to Activities before onCreate()

震动服务要放在onCreate内部

image

 

posted @ 2026-04-19 14:47  txwtech  阅读(2)  评论(1)    收藏  举报