Android_bug之Default Activity not found
生活随笔
收集整理的這篇文章主要介紹了
Android_bug之Default Activity not found
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
在運行自己修改默認的MainActivety,運行自己的Mainactivety時,碰到這個問題Could not identify launch activity: Default Activity not found
這個錯誤可能出現在run之后的Run的信息框中:?
或者?
?
在這里可以看到關于運行的選項,是選擇默認的activity還是指定的activity進行運行,我們的問題就出在和activity相關地方
如果我們選定指定的activity進行運行,就會發現報另外一個錯誤
現在我們發現,是因為在AndroidManifest.xml中沒有定義activity,在其中的中間加上activity的定義就行了
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="zding.focuscircle"> <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name="zding.focuscircle.FocusCircleActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
這樣,問題就解決了
轉載于:https://www.cnblogs.com/jym-sunshine/p/5635977.html
新人創作打卡挑戰賽發博客就能抽獎!定制產品紅包拿不停!總結
以上是生活随笔為你收集整理的Android_bug之Default Activity not found的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 魔星是好人
- 下一篇: Android——4.2.2 文件系统文