Android Studio 3.0 Update Error

Asked

Viewed 4,736 times

2

Good today appeared an update to Android Studio and as always put to update normally. When I finished updating I asked to download some versions of Radle and things like that, I just installed it to run normally. However the debug manifest gives an error when compiling.

log:

Error:(2) error: attribute 'package' in tag is not a valid Java package name: 'com.example.joao_.monitoclub'.

Error:java.util.concurrent.ExecutionException:1java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details

Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.joao_.monitoclub"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="19"
        android:targetSdkVersion="25" />

    <meta-data
        android:name="android.support.VERSION"
        android:value="25.3.1" /> <!-- Required permission for App measurement to run. -->
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

    <permission
        android:name="com.example.joao_.monitoclub.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />

    <uses-permission android:name="com.example.joao_.monitoclub.permission.C2D_MESSAGE" />
</manifest>
  • I’m in the same trouble, I share your pain

  • Disabling Aapt2 is not a solution. It just suppresses errors. It is correct to adapt the manifest as reference in this solution (in English): https://stackoverflow.com/questions/46976562/my-android-manifest-full-of-errors-after-updating-to-android-3-0-0

2 answers

1

Solved ! place

android.enableAapt2=false

in Glade.properties and everything goes back to normal.

Thank you all very much for your contribution.

1

I added this attribute to the Gradle-wrapper.properties file and it worked.

android.enableAapt2=false
  • didn’t work here

  • didn’t work on mine either

  • thus solved my problem: https://stackoverflow.com/questions/46910532/android-studio-3-0-rc-2. this option must be changed in Glade properties.

  • 1

    @Gabriellocalhost Thank you very much , putting on glede.properties worked correctly again.

Browser other questions tagged

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