繁体   English   中英

未在Eclipse Juno的清单文件中创建默认活动

[英]Default activity not created in Manifest file with Eclipse Juno

可能有重复,但是找不到适合我的解决方案。

我昨天前从developer.android.com下载了最新的Eclipse Juno,它的运行似乎很奇怪。 我正在尝试运行“ Hello World ”,但未在清单文件中创建默认活动。

然后我也收到此错误:

Unable to write Jarlist cache file
workspace\appcompat_v7\bin\jarlist.cacheworkspace\appcompat_v7\bin\jarlist.cache

有人可以建议吗

在您的清单中添加此代码。

   <activity
                    android:name=".MainActivity"
                    android:label="@string/app_name" >
                    <intent-filter>
                        <action android:name="android.intent.action.MAIN" />

                        <category android:name="android.intent.category.LAUNCHER" />
                    </intent-filter>
  </activity>

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM