android - Error building Ionic app: Failed to execute aapt (CordovaLib:processDebugResources) -


i'm trying use ionic framework build hybrid mobile apps i'm facing following problem since few days.

when want build application (which blank project), command "ionic cordova build android" returns error (detailed logs below) when executing cordovalib:processdebugresources task:

/home/pi/android-sdk/build-tools/23.0.1/aapt: syntax error: newline unexpected (expecting ")")

i tried reinstall many times android sdk. tried differents versions of android tools/platforms (23, 26) did nothing.

i didn't find on web solution solve problem. so, if has idea or faced problem , solved it, not hesitate ;-)

thank help.

  • detailled logs when building app:

    :cordovalib:generatedebugbuildconfig up-to-date :cordovalib:processdebugresources/home/pi/android-sdk/build-tools/23.0.1/aapt: 2: /home/pi/android-sdk/build-tools/23.0.1/aapt: syntax error: newline unexpected (expecting ")")    failed  failure: build failed exception.  * went wrong: execution failed task ':cordovalib:processdebugresources'. > com.android.ide.common.process.processexception: failed execute aapt  * try: run --stacktrace option stack trace. run --info or --debug option more log output.  build failed  total time: 55.363 secs error: /home/pi/ionicpj/platforms/android/gradlew: command failed exit code 1 error output: picked _java_options: -xmx256m /home/pi/android-sdk/build-tools/23.0.1/aapt: 2: /home/pi/android-sdk/build-tools/23.0.1/aapt: syntax error: newline unexpected (expecting ")")   failure: build failed exception.  * went wrong: execution failed task ':cordovalib:processdebugresources'. > com.android.ide.common.process.processexception: failed execute aapt 
  • you find below different element concerning components installed.

ionic 3.8.1 cordova 7.0.1 gradle 4.1 java 8

i set variables $java_home, $android_home , added $android_home/tools , $android_home/platform-tools $path variable

this packages installed via android sdkmanager:

    installed packages:   path                        | version | description                    | location   -------                     | ------- | -------                        | -------   build-tools;23.0.1          | 23.0.1  | android sdk build-tools 23.0.1 | build-tools/23.0.1/   emulator                    | 26.1.3  | android emulator               | emulator/   extras;android;m2repository | 47.0.0  | android support repository     | extras/android/m2repository/   extras;google;m2repository  | 57      | google repository              | extras/google/m2repository/   patcher;v4                  | 1       | sdk patch applier v4           | patcher/v4/   platform-tools              | 26.0.0  | android sdk platform-tools     | platform-tools/   platforms;android-23        | 3       | android sdk platform 23        | platforms/android-23/   platforms;android-25        | 3       | android sdk platform 25        | platforms/android-25/   tools                       | 26.0.2  | android sdk tools              | tools/ 

when run "ionic cordova platform ls", have:

installed platforms: android 6.2.3

and running on raspberry raspbian jessie:

linux raspberrypi 4.9.35-v7+ #1014 smp fri jun 30 14:47:43 bst 2017 armv7l gnu/linux


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

angular - DownloadURL return null in below code -

php - Cannot override Laravel Spark authentication with own implementation -