I got the following error log after installing Facebook Plugin in Ionic 2 Project-
cordova build android - failed!
[ERROR] An error occurred while running cordova build android (exit code 1):
<
(truncated) … eBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:javaPreCompileDebug
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE
:CordovaLib:transformNativeLibsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug
:prepareDebugDependencies
:compileDebugAidl
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources
:processDebugManifest
:processDebugResources/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3:
AAPT: Error retrieving parent for item: No resource found that matches the given name
’android:TextAppearance.Material.Widget.Button.Borderless.Colored’.
<
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4:
AAPT: Error retrieving parent for item: No resource found that matches the given name
’android:TextAppearance.Material.Widget.Button.Colored’.
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3:
error: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4:
error: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Colored'.
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 14.675 secs
Error: /Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/gradlew: Command
failed with exit code 1 Error output:
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3:
AAPT: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4:
AAPT: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Colored'.
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3:
error: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/eeshana/Desktop/Dinesh_Projects/Git_Workspace/OpinionPlus_iOS/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4:
error: Error retrieving parent for item: No resource found that matches the given name
'android:TextAppearance.Material.Widget.Button.Colored'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
** I am using following environment for Ionic 2**
cli packages:
: 1.8.1
ionic (Ionic CLI) : 3.8.1
global packages:
Cordova CLI : 7.0.1
local packages:
: 1.3.7
Cordova Platforms : android 6.1.2 ios 4.3.1
Ionic Framework : ionic-angular 3.3.0
System:
ios-deploy : 1.9.1
Node : v6.11.1
npm : 5.3.0
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
Can anyone please help to solve this issue?
Thanks in advance…