Android studio 解決問題Default Activity not found

昨天新建的項目,今天打開的時候,發現沒法編譯了。編譯按鈕沒法點擊,必須edit configuration。而且報錯 default activity html

not foundandroid

從網上搜索瞭解決方案。測試

第一步:在AndroidMainfest.xml文件中,spa

將設置成main的activity的路徑。寫成絕對路徑,也就是須要packageName.className的方式補全.net

以後再去測試。若是不能夠xml

在進行第二步:htm

在main activity的intent-filter中添加以下屬性blog

<action android:name="packageName.className"/>  get

具體的參考地址:it

http://www.bubuko.com/infodetail-899104.html

http://blog.csdn.net/bdmh/article/details/30489451

相關文章
相關標籤/搜索