平板电脑里面的乐天视频打开就显示App or Activity not found是什么意思怎么办?

android - Could not identify launch Activity: Default Activity not found - Stack Overflow
to customize your list.
Announcing Stack Overflow Documentation
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
I'm new to android and I have encounterded a problem.
The console said that "Could not identify launch activity: Default Activity not found".
I have add
&intent-filter&
&action android:name="android.intent.action.MAIN"/&
&category android:name="android.intent.category.LAUNCHER"/&
&/intent-filter&
in manifests.
And I have tried Invalidate caches/Restart,still not worked.
And the class file which contains the main activity turn green in android studio. I don't know what that means.
This is my manifests file.
&?xml version="1.0" encoding="utf-8"?&
&manifest xmlns:android="/apk/res/android"
package="com.example.mrrobot.mycoolweather" &
&uses-permission android:name="android.permission.INTERNET"/&
&application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" &
android:name="com.example.mrrobot.mycoolweather.activity.ChooseAreaActivity"
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&
The chooseAreaActivity is the one I want to use as launcher activity.
2,07371437
For main activity in your manifest you have to add this with category LAUNCHER (First Activity on launch app):
android:name=".MainActivity"
android:label="YourAppName"
android:theme="@style/AppTheme.NoActionBar" &
&intent-filter&
&action android:name="android.intent.action.MAIN" /&
&category android:name="android.intent.category.LAUNCHER" /&
&/intent-filter&
&/activity&
For other activity you have to change category to DEFAULT:
android:name=".OtherActivity"
android:theme="@style/AppTheme.NoActionBar" &
&intent-filter&
&action android:name="package.OtherActivity" /&
&category android:name="android.intent.category.DEFAULT" /&
&/intent-filter&
&/activity&
Check this
So your code is:
&?xml version="1.0" encoding="utf-8"?&
&manifest xmlns:android="/apk/res/android"
package="com.example.mrrobot.mycoolweather" &
&uses-permission android:name="android.permission.INTERNET"/&
&application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme" &
android:name=".activity.ChooseAreaActivity"
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&
2,31641029
Sometimes it is solved just restarting Android Studio
I had the "Default Activity not found" problem a couple of times and I could solved restarting my android Studio.
If you see that error occur after upgrading your IDEA, upgrading Android Studio version, or Generating a new APK, you may need to refresh the IDE's cache.
File -& Invalidate Caches / Restart...
you should add this line of code for your MainActivity in your manifest:
android:name="com.example.mrrobot.mycoolweather.activity.ChooseAreaActivity"&
&intent-filter&
&action android:name="android.intent.action.MAIN" /&
&category android:name="android.intent.category.LAUNCHER" /&
&/intent-filter&
2,07371437
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledandroid.content.ActivityNotFoundException: Unable to find explicit activity class_百度知道香港:+852-
海外:+86-21-
&&请问在乐天app上买的东西,到机场安检完取还是之前取货?
已解决问题:1648777
2527973人贡献宝贵经验
请问在乐天app上买的东西,到机场安检完取还是之前取货?
全部回答(5)
按赞同数排序
安检完取的,不过当时取了好久,我们和好多游客都有点来不及赶飞机了,最后是飞奔去登机口的
在乐天app或官网上购买的产品,和在实体店购买在机场取货的产品,全部都是在过完安检后,在乐天取货处领取,乐天排队的人较多,建议充分准备好时间
安检完&所有的取货点&你在网上订的和在实体买的国际品牌都一起取
安检、过海关以后再取,一个很大的柜台或者说店,很多人排队取货。
APP的就是网上免税店的东西,都是必须机场安检之后才能取货,取完了可以直接提上飞机,如果需要再次托运的话,还是要询问一下航班空乘人员,个别说是提供的,可能会另收费的哈。
你可能想知道
最受欢迎区域:
很多游友选择住在附近103家酒店
其他住宿区域:
首尔经典3日游
此行去了:
特价门票?50
江原道、法兰克福、首尔等地专家
韩国、首尔、江原道专家
请问在乐天app上买的东西,到机场安检完取还是之前取货?
我们找到了一个相同的答案,不能重复回答哦。
和问题无关、信息错误的回答会被隐藏。
这条回答是否对问题没有帮助?
首尔旅游攻略指南? 携程攻略社区! 靠谱的旅游攻略平台,最佳的首尔自助游、自由行、自驾游、跟团旅线路,海量首尔旅游景点图片、游记、交通、美食、购物、住宿、娱乐、行程、指南等旅游攻略信息,了解更多首尔旅游信息就来携程旅游攻略。 韩国旅游攻略导航:
 |  |  |  |  |  |  |  |  |  
|  |  |  |  |  | 
 | | |  |  |  |  |  | , . All rights reserved. | 

我要回帖

更多关于 not found是什么意思 的文章

 

随机推荐