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
– GabrielLocalhost
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
– Pedro Gabriel Lancelloti Pinto