0
我编写了一个应用程序。代码中的一切都很好。但它不能在模拟器中运行。它给出一些误差如下:应用程序无法在仿真器中运行
为d分析器例外:\ Android的工作区\ DbTuts \ AndroidManifest.xml中:元素类型“application”必须由匹配的结束标签“”来终止。
运行时没有命令输出:'am start -n com.android.tuts/com.android.tuts.MyActivity -a android.intent.action.MAIN -c android.intent.category.LAUNCHER'on device模拟器-5556
清单代码如下:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.tuts"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application android:name=".ApplicationContextProvider"
android:label="@string/app_name"></application>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".MyActivity"
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>
现在它在模拟器中给出一个msg,因为'应用程序意外停止'。 – TUSWAY
由于代码中的另一个错误,应用程序可能会停止。发布你的logcat和相关的代码 – CocoNess
你应该接受这个答案,如果你还有问题,请打开另一个问题 – CocoNess