ionic开发在mac搭建 android环境 cordova build android时报错

cordova 添加andorid平台没报错,cordova buiild android时报错, 错误信息
Execution failed for task ':CordovaLib: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. at ChildProcess.whenDone (/Users/用户名/Documents/workspace/mobile/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Socket.stream.socket.on (internal/child_process.js:381:11) at Socket.emit (events.js:182:13) at Pipe._handle.close (net.js:606:12) (node:5733) 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:5733) [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.

cordova reqirements
equirements check results for android:
Java JDK: installed 1.8.0
Android SDK: installed true
Android target: installed android-29,android-27,android-26,android-25,android-24,android-23,android-22,android-21
Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle

ionic info
Ionic:

ionic (Ionic CLI) : 4.1.2 (/Users/wangli/.nvm/versions/node/v10.13.0/lib/node_modules/ionic)
Ionic Framework : ionic1 1.3.5
@ionic/v1-toolkit : not installed

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 6.3.0
Cordova Plugins : no whitelisted plugins (26 plugins total)

System:

Android SDK Tools : 26.1.1 (/Users/wangli/Library/Android/sdk)
ios-deploy : 1.10.0
NodeJS : v10.13.0 (/Users/wangli/.nvm/versions/node/v10.13.0/bin/node)
npm : 6.4.1
OS : macOS
Xcode : Xcode 10.1 Build version 10B61

 按照网上说的 减低cordova 版本也是没用
 根据这个(https://stackoverflow.com/questions/47719314/execution-failed-for-task-cordovalibprocessdebugresources-com-android-ide)链接进去,按照上面步骤操作 build时依然报错