Android Studio 3.0 Update Error

2

Well today an update appeared for Android Studio and as I always put it to update normally. When I finished updating I asked to download some gradle versions and things like that, I just installed it so I let it run normally. But the debug \ manifest has an error 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>
    
asked by anonymous 26.10.2017 / 17:39

2 answers

1

I added this attribute in the gradle-wrapper.properties file and it worked.

android.enableAapt2=false
    
26.10.2017 / 18:46
1

Solved !!  put

android.enableAapt2=false

in  glade.properties and everything goes back to normal.

Many thanks to everyone for the contribution.

    
31.10.2017 / 03:53