AppBuilder browser and desktop client unable to build

2 posts, 0 answers
  1. fabrica
    fabrica avatar
    1 posts
    Member since:
    Oct 2014

    Posted 18 Aug 2015 Link to this post


    Im triying to build my project but in getting this error


    Server exception
    Project "Productos App.tmp.proj" (default targets): android Build Tooling revision 2015.08.04.1r Warning: BUILD FAILED /home/builder/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line: /home/builder/android-sdk-linux/tools/ant/build.xml:698: null returned: 1 Total time: 3 seconds Warning: [aapt] invalid resource directory name: /tmp/builds/GwzY7AAkDGaVEtgcGX/app/res XML Error: /home/builder/BpcTooling/BuildScripts/node_build/node_modules/q/q.js:151 throw e; ^ [object Object] Error: 'Build failed with error code 8' Done building project "Productos App.tmp.proj" -- FAILED. 


    If i build for windows phone works great but with android fail everytime

    i read some thread in forums and try changing the version code​ in property tab for android from 1 to 2 but nothings happend im still getting the error


    thanks for the help

  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 21 Aug 2015 Link to this post


    I addressed your report in the support ticketing system but I want to update this thread to let the community know what is the cause for this particular error.

    The build log lists as a warning the error that is actually causing the build failure: Warning: [aapt] invalid resource directory name: /tmp/builds/GwzY7AAkDGaVEtgcGX/app/res XML. The error basically indicates that the Android resources in the app contain an incorrectly named folder. When you consider this information, you have to keep in mind that Android is case sensitive when it comes to resource paths. This is why the build expects to find the config.xml file under a folder named xml instead of inside a folder named XML. Although I am not sure why and how the folder was named with upper casing in your case, I suggested recreating the entire folder in the In-Browser client of AppBuilder through those steps:
    1. Open your project in the In-Browser client of AppBuilder
    2. In the Project Navigator, open the App_Resources/Android/XML/config.xml  file
    3. Copy the contents of the file to another file somewhere on your desktop
    4. Remove the entire XML folder under App_Resources/Android
    5. In the Project Navigator, right-click your project and select Edit Configuration.
    6. Select Android Config.xml
    7. Ensure that the newly created file is added under a folder named xml
    8. Once the file opens in the editor, paste the content from your original file (from step 3)
    9. Build your project again
    I hope this approach would help.

    Tina Stancheva

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

Back to Top