Error in Debugresources process

Asked

Viewed 53 times

0

Could anyone assist me in solving this error that is occurring. I formatted my machine and installed the version of Android Studio 2.1.2. Since I don’t have domain of the platform, I don’t know if it can be something of application configuration or not. If anyone knows anything that can help me I’d appreciate it!

Erro

  • You can post the entire code of AndroidManifest?

  • Sure, follow the code:

2 answers

0

The following tags

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

of uses-permission has to stay out of tag application!

Edit

Try to keep it that way AndroidManifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.arielacrippa.saudetotal">

  <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
  <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

  <application
     android:allowBackup="true"
     android:icon="@mipmap/ic_launcher"
     android:label="@string/app_name"
     android:supportsRtl="true"
     android:theme="@style/AppTheme" >

  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:theme="@style/AppTheme.NoActionBar">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
  </activity>
  <activity
    android:name=".Cadastros" android:screenOrientation="portrait" />
  <activity android:name=".Configuracoes" android:screenOrientation="portrait" />
  <activity android:name=".Relatorios" android:screenOrientation="portrait" />
  <activity android:name=".Usuários" android:screenOrientation="portrait" />
  </application>
</manifest>
  • I did, as you suggest, but it continues with errors and when I give a clean project the <user-permission> go back inside the application tag

  • This project is imported from Eclipse to Android Studio?

  • No, I started a new project on android.

  • @Arielacrippa I did an update on the answer, try to leave your file AndroidManifest.

  • 1

    I got it sorted out! It was a blessed accent in a class :/ Thank you so much for your tips and attention!

0

        <uses-sdk
            android:minSdkVersion="15"
            android:targetSdkVersion="24" />
        <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme" >
            <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
            <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

            <activity android:name="com.arielacrippa.saudetotal.MainActivity" >
                <intent-filter>
                    <action android:name="android.intent.action.MAIN" />
                    <category android:name="android.intent.category.LAUNCHER" />
                </intent-filter>
            </activity>
            <activity
                android:name="com.arielacrippa.saudetotal.activitys.Cadastros" android:screenOrientation="portrait" />
    <activity android:name="com.arielacrippa.saudetotal.activitys.Configuracoes" android:screenOrientation="portrait" />
    <activity android:name="com.arielacrippa.saudetotal.activitys.Relatorios" android:screenOrientation="portrait" />
    <activity android:name="com.arielacrippa.saudetotal.activitys.Usuários" android:screenOrientation="portrait" />
</application>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.