zoukankan      html  css  js  c++  java
  • 新建Application 报错android.app.Application cannot be cast

    我在开发APP的时候重新使用了一个类,继承了android.app.Application.但是在运行的时候提示java.lang.ClassCastException: android.app.Application cannot be cast to ******.Application

    解决方法:

    manifest.xml. application里面加入:

     android:name="com.test.Application"
    

    com.test.Application为你新建Application包名

     

  • 相关阅读:
    NYOJ 734
    NYOJ 762
    NYOJ 743
    NYOJ 478
    NYOJ 451
    NYOJ 461
    NYOJ 485
    NYOJ 333
    平均互信息
    ASCII码
  • 原文地址:https://www.cnblogs.com/adyyzjb/p/9560078.html
Copyright © 2011-2022 走看看