开发者

Manifest must be terminated by matching end tag

开发者 https://www.devze.com 2023-03-31 02:37 出处:网络
<?xml version=\"1.0\" encoding=\"utf-8\"?> <manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="hattrixz.fiz"
    android:versionCode="1"
    android:versionName="1.0">
  <uses-sdk android:minSdkVersion="8" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&开发者_C百科gt;
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
  <application android:icon="@drawable/icon" android:label="@string/app_name"/>
  <activity android:name=".VirtualTimeClockActivity"
      android:label="@string/app_name">
    <intent-filter>
      <action android:name="android.intent.action.MAIN" />
      <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
  </activity>
</manifest>

Nedless to say error will not let me debug.

So any help would be greatly appreciated

I also get the error "R" cannot be resolved in .java

package hattrixz.fiz;
import android.app.Activity;
import android.os.Bundle;

public class VirtualTimeClockActivity extends Activity {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
  }
}


You are missing a closing application tag in your manifest.xml. It should be:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="hattrixz.fiz"
    android:versionCode="1"
    android:versionName="1.0">
  <uses-sdk android:minSdkVersion="8" />
  <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
  <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
  <uses-permission android:name="android.permission.CHANGE_CONFIGURATION"/>
  <application android:icon="@drawable/icon" android:label="@string/app_name"/>
  <activity android:name=".VirtualTimeClockActivity"
      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>
0

精彩评论

暂无评论...
验证码 换一张
取 消