Cannot build Android App package, Error: [crunch] ERROR: 9-patch image /tmp/builds/hWLWXVxWlol5YsypDD/app/res/drawable-nodpi/splashscreen.9.png malfor

2 posts, 0 answers
  1. Ioannis
    Ioannis avatar
    4 posts
    Member since:
    Nov 2014

    Posted 21 May 2015 Link to this post

    Dear sirs,

    I have an application based on phonegap/javascript and I am trying to use the Keyboard plugin.

    In order to do so, it seems that I must create an App package version of my app as AppBuilder companion app does not support this plugin.

    Unfortunately whenever I try to build the Android App Package using AppBuilder Extension for Visual Studio v 2015.2.519.4 build fails, and it give me the following error:

    android Build Tooling revision 2015.5.19.3r
    Warning: WARNING: Plugin 'com.telerik.mobiletesting' was removed
    Warning: [aapt]     (skipping file '.travis.yml' due to ANDROID_AAPT_IGNORE pattern '.*')
    Warning: [aapt]     (skipping file '.jenkins' due to ANDROID_AAPT_IGNORE pattern '.*')
    Warning: [aapt]     (skipping file '.gitignore' due to ANDROID_AAPT_IGNORE pattern '.*')
    Error: [crunch] ERROR: 9-patch image /tmp/builds/hWLWXVxWlol5YsypDD/app/res/drawable-nodpi/splashscreen.9.png malformed.

    I have read this has to do with typescript but I am not using typescript.

    Thanks!

     

     

  2. Tsvetina
    Admin
    Tsvetina avatar
    1875 posts

    Posted 25 May 2015 Link to this post

    Hi Ioannis,

    Can you confirm that you haven't modified the splashscreen.9.png file in App_Resources/Android/drawable-nodpi or through the project properties -> Android -> General -> Splash Screens. When modifying this file, you must ensure that you are using a valid 9-patch image. To create one, you can use Draw 9-patch.

    Regards,
    Tsvetina
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
Back to Top