java - Android "Hello World" Error -
i'm new android development. i'm running eclipse adt plugin , installed necessary dependencies. open eclipse, select 'new android applciation' , set. when run app, error message saying
/home/parallels/workspace/test/androidmanifest.xml: 2: /home/parallels/workspace/test/androidmanifest.xml: syntax error: newline unexpected
so in android manifest , it's default, eclipse generated code, right? what's problem here?
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.test" android:versioncode="1" android:versionname="1.0"> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17" /> <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name="com.example.test.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> </application> </manifest>
is there empty space above first line in manifest? has @ top. have compiled far? maybe didn't imported properly. recommend android studio. it's googles modified version of eclipse specializes in android development. comes need ready go.