8 Replies Latest reply on Nov 20, 2016 1:06 AM by scon2016

    Building error on phonegap CLI

    scon2016 Level 1

      Dear users,

       

      when I try to build an app with "phonegap build android --debug", I receive this error:

       

      root@m-ub:/srv/applicazioni/ddns# phonegap build android --debug

      [phonegap] executing 'cordova build android --debug ' ...

      ANDROID_HOME=/usr/local/android-sdk-linux/

       

       

      JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386

       

       

       

       

       

       

      FAILURE:

      Build failed with an exception.

       

       

       

       

       

       

       

       

      * What went wrong:

       

       

      A problem occurred configuring root project 'android'.

       

       

      > failed to find target with hash string '15' in: /usr/local/android-sdk-linux

       

       

       

       

      * 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: 2.902 secs

       

       

      Error: Error code 1 for command: /srv/applicazioni/ddns/platforms/android/gradlew with args: cdvBuildDebug,-b,/srv/applicazioni/ddns/platforms/android/build.gradle,-Dorg.gradle.daemo n=true,-Pandroid.useDeprecatedNdk=true

       

      I have created 3 environment variables with a file in /root directory:

       

      export ANDROID_HOME=/usr/local/android-sdk-linux/

      export PATH=${PATH}:/usr/local/android-sdk-linux/platform-tools:/usr/local/android-sdk-linux/too ls

      export ORG_GRADLE_PROJECT_cdvCompileSdkVersion=15

       

      How can I fix this issue?

       

       

      Thanks

        • 1. Re: Building error on phonegap CLI
          ShazronAbdullah Adobe Employee

          Need more info:

          1. What version of the phonegap CLI are you running?

          2. What version of the cordova-android platform are you running?

          3. I assume API level 15 platform is installed in Android SDK Manager?

          • 2. Re: Building error on phonegap CLI
            scon2016 Level 1

            Phonegap CLI version: 6.3.4

             

            This is the result when I execute "phonegap info" in the directory where there is my app:

            root@m-ub:/srv/applicazioni/ddns# phonegap info

            Collecting Data...

             

             

             

             

             

             

            Node version: v0.10.25

             

             

            Cordova version: 6.1.1

             

             

            Config.xml file:

             

             

            <?xml version='1.0' encoding='utf-8'?>

            <widget id="com.miosito.ddns" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">

                <name>Controllo DDNS</name>

                <description>

                    Hello World sample application that responds to the deviceready event.

                </description>

                <author email="support@phonegap.com" href="http://phonegap.com">

                    PhoneGap Team

                </author>

                <content src="index.html" />

                <preference name="DisallowOverscroll" value="true" />

                <preference name="android-minSdkVersion" value="14" />

                <plugin name="cordova-plugin-battery-status" source="npm" spec="~1.1.1" />

                <plugin name="cordova-plugin-camera" source="npm" spec="~2.1.1" />

                <plugin name="cordova-plugin-media-capture" source="npm" spec="~1.2.0" />

                <plugin name="cordova-plugin-console" source="npm" spec="~1.0.2" />

                <plugin name="cordova-plugin-contacts" source="npm" spec="~2.0.1" />

                <plugin name="cordova-plugin-device" source="npm" spec="~1.1.1" />

                <plugin name="cordova-plugin-device-motion" source="npm" spec="~1.2.0" />

                <plugin name="cordova-plugin-device-orientation" source="npm" spec="~1.0.2" />

                <plugin name="cordova-plugin-dialogs" source="npm" spec="~1.2.0" />

                <plugin name="cordova-plugin-file" source="npm" spec="~4.1.1" />

                <plugin name="cordova-plugin-file-transfer" source="npm" spec="~1.5.0" />

                <plugin name="cordova-plugin-geolocation" source="npm" spec="~2.1.0" />

                <plugin name="cordova-plugin-globalization" source="npm" spec="~1.0.3" />

                <plugin name="cordova-plugin-inappbrowser" source="npm" spec="~1.3.0" />

                <plugin name="cordova-plugin-media" source="npm" spec="~2.2.0" />

                <plugin name="cordova-plugin-network-information" source="npm" spec="~1.2.0" />

                <plugin name="cordova-plugin-splashscreen" source="npm" spec="~3.2.1" />

                <plugin name="cordova-plugin-statusbar" source="npm" spec="~2.1.2" />

                <plugin name="cordova-plugin-vibration" source="npm" spec="~2.1.0" />

                <plugin name="cordova-plugin-whitelist" source="npm" spec="~1.2.1" />

                <icon src="icon.png" />

                <platform name="android">

                    <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />

                    <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />

                    <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />

                    <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />

                    <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />

                    <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />

                    <splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" />

                    <splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" />

                    <splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" />

                    <splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" />

                    <splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" />

                    <splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" />

                    <splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" />

                    <splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" />

                    <splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" />

                    <splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" />

                    <splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" />

                    <splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" />

                </platform>

                <platform name="ios">

                    <icon height="57" platform="ios" src="www/res/icon/ios/icon.png" width="57" />

                    <icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" />

                    <icon height="40" platform="ios" src="www/res/icon/ios/icon-40.png" width="40" />

                    <icon height="80" platform="ios" src="www/res/icon/ios/icon-40@2x.png" width="80" />

                    <icon height="50" platform="ios" src="www/res/icon/ios/icon-50.png" width="50" />

                    <icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" />

                    <icon height="60" platform="ios" src="www/res/icon/ios/icon-60.png" width="60" />

                    <icon height="120" platform="ios" src="www/res/icon/ios/icon-60@2x.png" width="120" />

                    <icon height="180" platform="ios" src="www/res/icon/ios/icon-60@3x.png" width="180" />

                    <icon height="72" platform="ios" src="www/res/icon/ios/icon-72.png" width="72" />

                    <icon height="144" platform="ios" src="www/res/icon/ios/icon-72@2x.png" width="144" />

                    <icon height="76" platform="ios" src="www/res/icon/ios/icon-76.png" width="76" />

                    <icon height="152" platform="ios" src="www/res/icon/ios/icon-76@2x.png" width="152" />

                    <icon height="29" platform="ios" src="www/res/icon/ios/icon-small.png" width="29" />

                    <icon height="58" platform="ios" src="www/res/icon/ios/icon-small@2x.png" width="58" />

                    <icon height="87" platform="ios" src="www/res/icon/ios/icon-small@3x.png" width="87" />

                    <splash height="1136" platform="ios" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" />

                    <splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" />

                    <splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" />

                    <splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" />

                    <splash height="1536" platform="ios" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />

                    <splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />

                    <splash height="2048" platform="ios" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />

                    <splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />

                    <splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />

                    <splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" />

                </platform>

                <platform name="wp8">

                    <icon height="99" platform="wp8" src="www/res/icon/wp8/ApplicationIcon.png" width="99" />

                    <icon height="159" platform="wp8" src="www/res/icon/wp8/Background.png" width="159" />

                    <splash height="1280" platform="wp8" src="www/res/screen/wp8/screen-portrait.jpg" width="768" />

                </platform>

                <platform name="windows">

                    <icon height="150" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-100.png" width="150" />

                    <icon height="30" platform="windows" src="www/res/icon/windows/Square30x30Logo.scale-100.png" width="30" />

                    <icon height="50" platform="windows" src="www/res/icon/windows/StoreLogo.scale-100.png" width="50" />

                    <splash height="300" platform="windows" src="www/res/screen/windows/SplashScreen.scale-100.png" width="620" />

                    <icon height="120" platform="windows" src="www/res/icon/windows/StoreLogo.scale-240.png" width="120" />

                    <icon height="44" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-100.png" width="44" />

                    <icon height="106" platform="windows" src="www/res/icon/windows/Square44x44Logo.scale-240.png" width="106" />

                    <icon height="70" platform="windows" src="www/res/icon/windows/Square70x70Logo.scale-100.png" width="70" />

                    <icon height="71" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-100.png" width="71" />

                    <icon height="170" platform="windows" src="www/res/icon/windows/Square71x71Logo.scale-240.png" width="170" />

                    <icon height="360" platform="windows" src="www/res/icon/windows/Square150x150Logo.scale-240.png" width="360" />

                    <icon height="310" platform="windows" src="www/res/icon/windows/Square310x310Logo.scale-100.png" width="310" />

                    <icon height="150" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-100.png" width="310" />

                    <icon height="360" platform="windows" src="www/res/icon/windows/Wide310x150Logo.scale-240.png" width="744" />

                    <splash height="1920" platform="windows" src="www/res/screen/windows/SplashScreenPhone.scale-240.png" width="1152" />

                </platform>

                <access origin="*" />

                <allow-intent href="http://*/*" />

                <allow-intent href="https://*/*" />

                <allow-intent href="tel:*" />

                <allow-intent href="sms:*" />

                <allow-intent href="mailto:*" />

                <allow-intent href="geo:*" />

                <platform name="android">

                    <allow-intent href="market:*" />

                </platform>

                <platform name="ios">

                    <allow-intent href="itms:*" />

                    <allow-intent href="itms-apps:*" />

                </platform>

            </widget>

             

             

             

             

            Plugins:

             

             

            cordova-plugin-battery-status,cordova-plugin-camera,cordova-plugin-compat,cordova-plugin-c onsole,cordova-plugin-contacts,cordova-plugin-device,cordova-plugin-device-motion,cordova- plugin-device-orientation,cordova-plugin-dialogs,cordova-plugin-file,cordova-plugin-file-t ransfer,cordova-plugin-geolocation,cordova-plugin-globalization,cordova-plugin-inappbrowse r,cordova-plugin-media,cordova-plugin-media-capture,cordova-plugin-network-information,cor dova-plugin-splashscreen,cordova-plugin-statusbar,cordova-plugin-vibration,cordova-plugin- whitelist

             

             

            Android platform:

             

             

            Available Android targets:

            ----------

            id: 1 or "android-7"

                 Name: Android 2.1

                 Type: Platform

                 API level: 7

                 Revision: 3

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854

            Tag/ABIs : default/armeabi

            ----------

            id: 2 or "android-8"

                 Name: Android 2.2

                 Type: Platform

                 API level: 8

                 Revision: 3

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854

            Tag/ABIs : default/armeabi

            ----------

            id: 3 or "android-9"

                 Name: Android 2.3.1

                 Type: Platform

                 API level: 9

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854

            Tag/ABIs : default/armeabi

            ----------

            id: 4 or "android-10"

                 Name: Android 2.3.3

                 Type: Platform

                 API level: 10

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WVGA800 (default), WVGA854

            Tag/ABIs : default/armeabi

            ----------

            id: 5 or "android-11"

                 Name: Android 3.0

                 Type: Platform

                 API level: 11

                 Revision: 2

                 Skins: WXGA (default)

            Tag/ABIs : default/armeabi

            ----------

            id: 6 or "android-12"

                 Name: Android 3.1

                 Type: Platform

                 API level: 12

                 Revision: 3

                 Skins: WXGA (default)

            Tag/ABIs : default/armeabi

            ----------

            id: 7 or "android-13"

                 Name: Android 3.2

                 Type: Platform

                 API level: 13

                 Revision: 1

                 Skins: WXGA (default)

            Tag/ABIs : default/armeabi

            ----------

            id: 8 or "android-14"

                 Name: Android 4.0

                 Type: Platform

                 API level: 14

                 Revision: 4

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800

            Tag/ABIs : no ABIs.

            ----------

            id: 9 or "android-15"

                 Name: Android 4.0.3

                 Type: Platform

                 API level: 15

                 Revision: 5

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800

            Tag/ABIs : no ABIs.

            ----------

            id: 10 or "android-16"

                 Name: Android 4.1.2

                 Type: Platform

                 API level: 16

                 Revision: 5

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 11 or "android-17"

                 Name: Android 4.2.2

                 Type: Platform

                 API level: 17

                 Revision: 3

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 12 or "android-18"

                 Name: Android 4.3.1

                 Type: Platform

                 API level: 18

                 Revision: 3

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 13 or "android-19"

                 Name: Android 4.4.2

                 Type: Platform

                 API level: 19

                 Revision: 4

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 14 or "android-20"

                 Name: Android 4.4W.2

                 Type: Platform

                 API level: 20

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 15 or "android-21"

                 Name: Android 5.0.1

                 Type: Platform

                 API level: 21

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 16 or "android-22"

                 Name: Android 5.1.1

                 Type: Platform

                 API level: 22

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 17 or "android-23"

                 Name: Android 6.0

                 Type: Platform

                 API level: 23

                 Revision: 3

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 18 or "android-24"

                 Name: Android 7.0

                 Type: Platform

                 API level: 24

                 Revision: 2

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 19 or "android-25"

                 Name: Android 7.1.1

                 Type: Platform

                 API level: 25

                 Revision: 1

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 20 or "Google Inc.:Google APIs:15"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 3

                 Description: Android + Google APIs

                 Based on Android 4.0.3 (API level 15)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800

            Tag/ABIs : default/armeabi-v7a

            ----------

            id: 21 or "Google Inc.:Google APIs:16"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 4

                 Description: Android + Google APIs

                 Based on Android 4.1.2 (API level 16)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : default/armeabi-v7a

            ----------

            id: 22 or "Google Inc.:Google APIs:17"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 4

                 Description: Android + Google APIs

                 Based on Android 4.2.2 (API level 17)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : default/armeabi-v7a

            ----------

            id: 23 or "Google Inc.:Google APIs:18"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 4

                 Description: Android + Google APIs

                 Based on Android 4.3.1 (API level 18)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : default/armeabi-v7a

            ----------

            id: 24 or "Google Inc.:Glass Development Kit Preview:19"

                 Name: Glass Development Kit Preview

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 11

                 Description: Preview of the Glass Development Kit

                 Based on Android 4.4.2 (API level 19)

                 Libraries:

                  * com.google.android.glass (gdk.jar)

                      APIs for Glass Development Kit Preview

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 25 or "Google Inc.:Google APIs:19"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 20

                 Description: Android + Google APIs

                 Based on Android 4.4.2 (API level 19)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 26 or "Google Inc.:Google APIs:21"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 1

                 Description: Android + Google APIs

                 Based on Android 5.0.1 (API level 21)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 27 or "Google Inc.:Google APIs:22"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 1

                 Description: Android + Google APIs

                 Based on Android 5.1.1 (API level 22)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 28 or "Google Inc.:Google APIs:23"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 1

                 Description: Android + Google APIs

                 Based on Android 6.0 (API level 23)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

            ----------

            id: 29 or "Google Inc.:Google APIs:24"

                 Name: Google APIs

                 Type: Add-On

                 Vendor: Google Inc.

                 Revision: 1

                 Description: Android + Google APIs

                 Based on Android 7.0 (API level 24)

                 Libraries:

                  * com.google.android.media.effects (effects.jar)

                      Collection of video effects

                  * com.android.future.usb.accessory (usb.jar)

                      API for USB Accessories

                  * com.google.android.maps (maps.jar)

                      API for Google Maps

                 Skins: HVGA, QVGA, WQVGA400, WQVGA432, WSVGA, WVGA800 (default), WVGA854, WXGA720, WXGA800, WXGA800-7in

            Tag/ABIs : no ABIs.

             

             

            I want to know how I can fix this issue.

             

             

            Thanks

            • 3. Re: Building error on phonegap CLI
              ShazronAbdullah Adobe Employee

              Your config.xml does not tell me what cordova-android version you are running. `cordova platform save` should do it.

               

              Did you:

              1. run a clean and try the build again?

              2. do a bunch of upgrades on the project (how old is the project)?

              • 4. Re: Building error on phonegap CLI
                scon2016 Level 1

                This is the result when I enter the command "phonegap cordova clean":

                root@m-ub:/srv/applicazioni/ddns# phonegap cordova clean

                ANDROID_HOME=/usr/local/android-sdk-linux/

                JAVA_HOME=/usr/lib/jvm/java-7-openjdk-i386

                FAILURE:

                Build failed with an exception.

                * What went wrong:

                A problem occurred configuring root project 'android'.

                > failed to find target with hash string '15' in: /usr/local/android-sdk-linux

                * 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: 2.879 secs

                Error: /srv/applicazioni/ddns/platforms/android/gradlew: Command failed with exit code 1

                 

                When I enter "phonegap cordova platform save", I don't have any output.

                 

                The project is old 2 weeks.

                 

                Can you help me to fix this issue?

                 

                 

                Thanks

                • 5. Re: Building error on phonegap CLI
                  ShazronAbdullah Adobe Employee

                  Sorry, don't run both "phonegap" and "cordova", just use "phonegap platform save", and re-attach the updated config.xml.

                  • 6. Re: Building error on phonegap CLI
                    scon2016 Level 1

                    I tried it, it's the same. I have changed some data in config.xml (icons files), but when I execute this:

                     

                    phonegap clean

                    phonegap platform save

                    phonegap info

                    I get the same config.xml as before.

                     

                    I tried to execute this:

                    cd /usr/local/android-sdk-linux/tools

                    ./android

                    But I got this error:

                    Exception in thread "main" org.eclipse.swt.SWTError: No more handles [gtk_init_check() failed]
                      at org
                    .eclipse.swt.SWT.error(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Display.createDisplay(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Display.create(Unknown Source)
                      at org
                    .eclipse.swt.graphics.Device.<init>(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Display.<init>(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Display.<init>(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Display.getDefault(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Shell.<init>(Unknown Source)
                      at org
                    .eclipse.swt.widgets.Shell.<init>(Unknown Source)
                      at com
                    .android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.createShell(SdkUpdaterWindowImpl2.java:168)
                      at com
                    .android.sdkuilib.internal.repository.ui.SdkUpdaterWindowImpl2.open(SdkUpdaterWindowImpl2.java:137)
                      at com
                    .android.sdkuilib.repository.SdkUpdaterWindow.open(SdkUpdaterWindow.java:111)
                      at com
                    .android.sdkmanager.Main.showSdkManagerWindow(Main.java:356)
                      at com
                    .android.sdkmanager.Main.doAction(Main.java:334)
                      at com
                    .android.sdkmanager.Main.run(Main.java:120)
                      at com
                    .android.sdkmanager.Main.main(Main.java:103)

                    I searched this problem on the internet, and I found that the problem is the version of my OS, only server, not desktop.

                     

                     

                    I don't know how to continue.

                     

                    Can you help?

                     

                     

                    Thanks

                    • 8. Re: Building error on phonegap CLI
                      scon2016 Level 1

                      I tried to install all I have installed on my VPS (ubuntu server) on my ubuntu desktop PC, if there was a need of the desktop for some commands.

                       

                      Then I read the page you linked to me and I run these commands:

                      apt-get install xvfb

                      export DISPLAY=:1

                      Xvfb :1 -ac -screen 0 1024x768x8

                      But I had to press "Ctrl+C" to stop the command, beacuse I wasn't able to execute other commands, and then I executed this:

                      cd /usr/local/android-sdk-linux/tools

                      ./android

                      But I had this result:

                      Xlib:  extension "RANDR" missing on display ":1".

                      And I had to press "Ctrl+C" to stop the command, and the terminal continued to show this:

                      g_dbus_connection_real_closed: Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.

                      root@m-ub:/usr/local/android-sdk-linux/tools# 8 XSELINUXs still allocated at reset

                      SCREEN: 0 objects of 144 bytes = 0 total bytes 0 private allocs

                      DEVICE: 0 objects of 64 bytes = 0 total bytes 0 private allocs

                      CLIENT: 0 objects of 100 bytes = 0 total bytes 0 private allocs

                      WINDOW: 0 objects of 16 bytes = 0 total bytes 0 private allocs

                      PIXMAP: 2 objects of 8 bytes = 16 total bytes 0 private allocs

                      GC: 4 objects of 8 bytes = 32 total bytes 0 private allocs

                      CURSOR: 1 objects of 4 bytes = 4 total bytes 0 private allocs

                      TOTAL: 7 objects, 52 bytes, 0 allocs

                      1 SELECTIONs still allocated at reset

                      WINDOW: 0 objects of 16 bytes = 0 total bytes 0 private allocs

                      PIXMAP: 2 objects of 8 bytes = 16 total bytes 0 private allocs

                      GC: 4 objects of 8 bytes = 32 total bytes 0 private allocs

                      CURSOR: 1 objects of 4 bytes = 4 total bytes 0 private allocs

                      TOTAL: 7 objects, 52 bytes, 0 allocs

                      2 PIXMAPs still allocated at reset

                      PIXMAP: 2 objects of 8 bytes = 16 total bytes 0 private allocs

                      GC: 4 objects of 8 bytes = 32 total bytes 0 private allocs

                      CURSOR: 1 objects of 4 bytes = 4 total bytes 0 private allocs

                      TOTAL: 7 objects, 52 bytes, 0 allocs

                      4 GCs still allocated at reset

                      GC: 4 objects of 8 bytes = 32 total bytes 0 private allocs

                      CURSOR: 1 objects of 4 bytes = 4 total bytes 0 private allocs

                      TOTAL: 5 objects, 36 bytes, 0 allocs

                      1 CURSORs still allocated at reset

                      CURSOR: 1 objects of 4 bytes = 4 total bytes 0 private allocs

                      TOTAL: 1 objects, 4 bytes, 0 allocs

                      1 CURSOR_BITSs still allocated at reset

                      TOTAL: 0 objects, 0 bytes, 0 allocs

                      [dix] Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!

                      [dix] Could not init font path element /usr/share/fonts/X11/100dpi/:unscaled, removing from list!

                      [dix] Could not init font path element /usr/share/fonts/X11/75dpi/:unscaled, removing from list!

                      [dix] Could not init font path element /usr/share/fonts/X11/100dpi, removing from list!

                      [dix] Could not init font path element /usr/share/fonts/X11/75dpi, removing from list!

                       

                      I don't know how to continue, I simply need to build an android app on my VPS.

                       

                       

                      Help!