1
Every time I import my project "Radio__santana" from Eclipse to Android Studio, returns this error:
* C:\Users\Cliente\AndroidImageSlideShow\AndroidManifest.xml:
Invalid XML file: C:\Users\Cliente\AndroidImageSlideShow\AndroidManifest.xml:
Premature end of file.
How to migrate correctly?
Android Manifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.rs.player"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="11"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission
android:name="android.permission.READ_CONTACTS"></uses-permission>
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.Black.NoTitleBar"
>
<activity
android:name=".Home"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:theme="@android:style/Theme.Holo.NoActionBar"
android:label="@string/app_name"
android:name=".Listen"
android:screenOrientation="portrait" class=".Ouvir" />
<activity android:theme="@android:style/Theme.Black.NoTitleBar"
android:label="@string/app_name"
android:name=".SplashNews"
android:screenOrientation="portrait" class=".SplashActivity" />
<activity android:theme="@android:style/Theme.Holo.Light"
android:label="@string/app_name"
android:name=".DetailActivity"
android:screenOrientation="portrait" class=".DetailActivity" />
<activity android:theme="@android:style/Theme.Holo.Light"
android:label="@string/app_name"
android:name=".ListActivity"
android:configChanges="orientation"
android:screenOrientation="portrait" class=".ListActivity" />
<activity android:theme="@android:style/Theme.Holo.Light"
android:label="@string/app_name"
android:name=".SendMessage"
android:configChanges="orientation"
android:screenOrientation="portrait" class=".SendMessageActivity" />
<activity android:theme="@android:style/Theme.Holo.Light"
android:label="@string/app_name"
android:name=".FormActivity"
android:configChanges="orientation"
android:screenOrientation="portrait" class=".FormActivity" />
<activity android:theme="@android:style/Theme.Holo.Light"
android:label="@string/app_name"
android:name=".InviteActivity"
android:configChanges="orientation"
android:screenOrientation="portrait" class=".InviteActivity" />
</application>
</manifest>
You can put the text of
AndroidManifest.xml
so that we can help?– mutlei
I don’t know what you’re saying?
– Kauan Kubaski
I was comparing your manifest with a manifest from a project I did in a group, and I couldn’t find any flaw in yours. You made the files
build.gradle
by ADT to import to Studio?– mutlei
I imported right through
– Kauan Kubaski
This may be the problem. Use ADT to create the files
.gradle
and then import ADT projects from the archives.gradle
– mutlei
how do I do that?
– Kauan Kubaski
Right click on the project, and go to the option
Export...
, then go onAndroid
so what,Generate Gradle build files
. Then just import the generated files, in Android Studio.– mutlei