2016-09-03 158 views
0

我已经升级我的Android工作室,当我跑我的老项目也推出了主题装置错误升级Android Studio中

16时45分三十零秒会议“主题”的时候给我的错误后

Could not identify launch activity: Default Activity not found 
Error while Launching activity 

这里是我的清单

<?xml version="1.0" encoding="utf-8" standalone="no"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android"package="com.nitinvaid.theme.neoncolorsl" platformBuildVersionCode="23" platformBuildVersionName="6.0-2438415"> 
<meta-data android:name="org.cyanogenmod.theme.name" android:value="@string/theme_name"/> 
<meta-data android:name="org.cyanogenmod.theme.author" android:value="@string/theme_author"/> 
<application android:hasCode="false" android:icon="@drawable/ic_launcher" android:label="@string/theme_name"> 
</application> 
</manifest> 
+0

检查您的默认活动仍然存在于您的清单。 –

+0

http://stackoverflow.com/questions/15825081/error-default-activity-not-found – Steve

+0

@MahmoudIbrahim添加了我的清单 –

回答

0

可能因为某些原因,你的默认的活动从您的清单中删除,将其添加为以下几点:

<activity 
     android:name=".YourActivity" 
     android:label="@string/app_name"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
+0

nope仍然是我一样建立CM13主题所以我不认为活动重要bcoz我以前检查太没有活动在我的清单,我建立在CM13主题模板,现在当我切换回到旧的android工作室它的工作完美再次为什么我有新的错误android studio –

+0

尝试将您的android studio更新为“Beta”版本,而不是更新为“Canary”或“Dev”。 –

+0

我正在使用android studio 1.5.1我也有这个问题几个月回当我升级我的android studio到2.0然后我恢复到1.5.1,现在今天我想给它一个尝试,但仍然是它在android studio 2.1中相同.3我猜 –

0

好了,所以它看起来像如果你正在构建主题的CM13那么作为主题不有它的活动,以便它只是错误,你应该忽略它或者你可以在新的Android工作室将始终为您提供了错误做的是

Just change the run configuration of android studio for a theme app. Instead of default activity, change it to no activity.