android.app.Application cannot be cast to com.example.dl.Application

  • Post author:
  • Post category:其他



http://blog.csdn.net/yming0221/article/details/8816703



  1. <


    application



  2. android:icon

    =

    “@drawable/ic_launcher”



  3. android:label

    =

    “@string/app_name”



  4. android:name

    =

    “com.athena.www.common.MyApplication”



  5. >

出现这个的错误原因就是在manifest.xml文件中没有加



  1. android:name

    =

    “com.baidu.api.***”


这句话

转载于:https://www.cnblogs.com/hao222/p/3507262.html