Failed to build android .. any help please

failed to build android Platform


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 58s
 FAILED
25 actionable tasks: 25 executed
(node:962) UnhandledPromiseRejectionWarning: Error: /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:103: AAPT: error: resource string/fb_app_id (aka io.ionic.starter:string/fb_app_id) not found.

/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:106: AAPT: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.

/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:110: AAPT: error: resource string/fb_app_name (aka io.ionic.starter:string/fb_app_name) not found.

/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:103: error: resource string/fb_app_id (aka io.ionic.starter:string/fb_app_id) not found.
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:106: error: resource string/fb_app_name (akaio.ionic.starter:string/fb_app_name) not found.
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:110: error: resource string/fb_app_name (akaio.ionic.starter:string/fb_app_name) not found.
error: failed processing manifest.

Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
        at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:796)
        at com.android.build.gradle.tasks.ProcessAndroidResources.invokeAaptForSplit(ProcessAndroidResources.java:551)
        at com.android.build.gradle.tasks.ProcessAndroidResources.doFullTaskAction(ProcessAndroidResources.java:285)
        at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:109)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> 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.

* Get more help at https://help.gradle.org

BUILD FAILED in 58s
    at ChildProcess.whenDone (/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:962) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:962) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Read the plugin’s documentation, chapter “cordova-android >= 7”

thank you for reply now i’m getting this error

11 errors
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
>
Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace
 option to get the stack trace. Run with --info or --debug option to get more log output.


* Get more help at https://help.gradle.org

BUILD FAILED
 in 1m 22s
27 actionable tasks: 27 executed
(node:1278) UnhandledPromiseRejectionWarning: Error: /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:88: error: cannot find symbol
    GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener,
             ^
  symbol:   class OnMyLocationClickListener
  location: class GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
                                        ^
  symbol:   class StreetViewSource
  location: package com.google.android.gms.maps.model
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:413: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol:   method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:832: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol:   method setOnMyLocationClickListener(<null>)
  location: variable map of type GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:2571: error: method does not override or implement a method from a supertype
  @Override
  ^
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
          StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
          ^
  symbol:   class StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
              ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                         ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
              StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
              ^
  symbol: class StreetViewSource
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                  ^
  symbol: variable StreetViewSource
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                             ^
  symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 22s
    at ChildProcess.whenDone (/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:1278) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1278) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Look like the map plugin isn’t installed correctly or something

Check if your java home is set properly.

sorry i can’t understand … what do you mean by java home ?
do you mean jdk ?

You might specified older version for PLAY_SERVICES_VERSION. At least 15.0.1.

and how to solve that if is’t the reason ?

Yes. The Path of java.

how to fix it … please?

Follow this link and you’ll be good to go…

still getting the same error after setting the java path

11 errors
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with
--stacktrace option to get the stack trace. Run with --info or --debug
 option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 41s
39 actionable tasks: 39 executed
(node:1473) UnhandledPromiseRejectionWarning: Error: /Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:88: error: cannot find symbol
    GoogleMap.OnMyLocationClickListener, GoogleMap.OnPoiClickListener,
             ^
  symbol:   class OnMyLocationClickListener
  location: class GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:17: error: cannot find symbol
import com.google.android.gms.maps.model.StreetViewSource;
                                        ^
  symbol:   class StreetViewSource
  location: package com.google.android.gms.maps.model
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:413: error: cannot find symbol
              map.setOnMyLocationClickListener(PluginMap.this);
                 ^
  symbol:   method setOnMyLocationClickListener(PluginMap)
  location: variable map of type GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:832: error: cannot find symbol
                  map.setOnMyLocationClickListener(null);
                     ^
  symbol:   method setOnMyLocationClickListener(<null>)
  location: variable map of type GoogleMap
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginMap.java:2571: error: method does not override or implement a method from a supertype
  @Override
  ^
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:87: error: cannot find symbol
          StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
          ^
  symbol:   class StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
              ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:88: error: cannot find symbol
              StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                         ^
  symbol:   variable StreetViewSource
  location: class PluginStreetViewPanorama
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:280: error: cannot find symbol
              StreetViewSource source = "OUTDOOR".equals(cameraOpts.getString("source")) ?
              ^
  symbol: class StreetViewSource
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                  ^
  symbol: variable StreetViewSource
/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/app/src/main/java/plugin/google/maps/PluginStreetViewPanorama.java:281: error: cannot find symbol
                  StreetViewSource.OUTDOOR : StreetViewSource.DEFAULT;
                                             ^
  symbol: variable StreetViewSource
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 41s
    at ChildProcess.whenDone (/Users/anspireagency/Desktop/ahmed f/Doctory/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:1473) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:1473) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

try to clean build your project once.

yes i did it … i removed the android and rebuild it again

Can you post your java home address??

/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home

That is wrong I think.

Try this.

my os Mac
version 10.13.3

May be it can help