Open nitinsharma333 opened 6 years ago
C:\Users\nitin sharma.gradle\caches\transforms-1\files-1.1\design-26.0.0-beta1.aar\d653d91f874db1712f698386f290577e\res\color\design_error.xml Error:error: resource attr/textColorError (aka com.example.nitinsharma.v4ever:attr/textColorError) not found. Error:resource attr/textColorError (aka com.example.nitinsharma.v4ever:attr/textColorError) not found.
C:\Users\nitin sharma\AndroidStudioProjects\V4ever\app\src\main\res\layout\fragment_display_home.xml Error:error: attribute 'com.example.nitinsharma.v4ever:layout_constraintLeft_toLeftOf' not found. Error:error: attribute 'com.example.nitinsharma.v4ever:layout_constraintTop_toTopOf' not found. Error:attribute 'com.example.nitinsharma.v4ever:layout_constraintLeft_toLeftOf' not found. Error:attribute 'com.example.nitinsharma.v4ever:layout_constraintTop_toTopOf' not found. Error:failed linking file resources. Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ':app:processDebugResources'.
Failed to execute aapt
2.design_error.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.nitinsharma.v4ever">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> <uses-permission android:name="android.permission.RECORD_AUDIO"/> <uses-permission android:name="com.android.vending.CHECK_LICENSE" /> <application android:name=".FireApp" android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" 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=".RegisterUserActivity" /> <activity android:name="com.theartofdev.edmodo.cropper.CropImageActivity" android:theme="@style/Base.Theme.AppCompat"/> <activity android:name=".profileuser.UserProfileActivity" /> <activity android:name=".displayposthome.DisplayHome" android:label="@string/title_activity_display_home" android:theme="@style/AppTheme.NoActionBar"></activity> </application>
apply plugin: 'com.android.application'
android { compileSdkVersion 26
defaultConfig { applicationId "com.example.nitinsharma.v4ever" minSdkVersion 18 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }
}
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:design:26.0.0-beta1' implementation 'com.google.firebase:firebase-database:11.0.4' implementation 'com.google.firebase:firebase-auth:11.0.4' implementation 'com.google.firebase:firebase-storage:11.0.4' compile 'com.theartofdev.edmodo:android-image-cropper:2.7.+' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
apply plugin: 'com.google.gms.google-services'
Change "compile" term into "implementation"
That still didnt work for me
use older version like:
implementation 'com.theartofdev.edmodo:android-image-cropper:2.5.1'
1. following errors are genrated in message gradle build and i moved to design_error.xml
C:\Users\nitin sharma.gradle\caches\transforms-1\files-1.1\design-26.0.0-beta1.aar\d653d91f874db1712f698386f290577e\res\color\design_error.xml Error:error: resource attr/textColorError (aka com.example.nitinsharma.v4ever:attr/textColorError) not found. Error:resource attr/textColorError (aka com.example.nitinsharma.v4ever:attr/textColorError) not found.
C:\Users\nitin sharma\AndroidStudioProjects\V4ever\app\src\main\res\layout\fragment_display_home.xml Error:error: attribute 'com.example.nitinsharma.v4ever:layout_constraintLeft_toLeftOf' not found. Error:error: attribute 'com.example.nitinsharma.v4ever:layout_constraintTop_toTopOf' not found. Error:attribute 'com.example.nitinsharma.v4ever:layout_constraintLeft_toLeftOf' not found. Error:attribute 'com.example.nitinsharma.v4ever:layout_constraintTop_toTopOf' not found. Error:failed linking file resources. Error:java.util.concurrent.ExecutionException: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details Error:Execution failed for task ':app:processDebugResources'.
2.design_error.xml
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.nitinsharma.v4ever">
apply plugin: 'com.android.application'
android { compileSdkVersion 26
}
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar'])
}
apply plugin: 'com.google.gms.google-services'