Visual studio 2015 cordova: Get stuck at Generating resource IDs when run android device or android emulator

2 posts, 0 answers
  1. Giovanni
    Giovanni avatar
    1 posts
    Member since:
    Jun 2015

    Posted 18 Jun 2015 Link to this post

    Hello folks,

    I have a problem while I'm trying to run my cordova project on an android device and android emulators.  

    I'm using visual studio at the time.

    When I try to run it on a android device or an android emulator it gets stuck at: Generating resource IDs.

    The strange thing is that it works perfectly with ripple emulators.

    Please help me!

    Error: 

    All packages are already installed and there is nothing to restore.
    NuGet package restore finished.
    1>------ Build started: Project: BlankCordovaApp5, Configuration: Debug Android ------
    1>  Your environment has been set up for using Node.js 0.10.33 (ia32) and npm.
    1>  ------ Ensuring correct global installation of package from source package directory: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\ApacheCordovaTools\packages\vs-tac
    1>
    1>  c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5>"C:\Users\test\AppData\Roaming\npm\\node_modules\vs-tac\vs-tac-cli.cmd"   build --platform Android --configuration Debug --projectDir . --projectName BlankCordovaApp5 --npmInstallDir C:\Users\test\AppData\Roaming\npm --language en-US --buildTarget 226C76AC-9E9A-4EBD-A495-79E8C5C5292F
    1>  ------ Cordova tools 4.3.0 already installed.
    1>  ------ Build Settings:
    1>  ------ Build Settings:
    1>  ------    platformConfigurationBldDir: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\bld\Android\Debug
    1>  ------    platformConfigurationBinDir: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\bin\Android\Debug
    1>  ------    buildCommand: build
    1>  ------    platform: Android
    1>  ------    cordovaPlatform: android
    1>  ------    configuration: Debug
    1>  ------    cordovaConfiguration: Debug
    1>  ------    projectName: BlankCordovaApp5
    1>  ------    projectSourceDir: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5
    1>  ------    npmInstallDir: C:\Users\test\AppData\Roaming\npm
    1>  ------    buildTarget: 226C76AC-9E9A-4EBD-A495-79E8C5C5292F
    1>  ------    language: en-US
    1>  ------ Platform android already exists
    1>  ------ Copying native files from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\native\android to platforms\android
    1>  ------ Copied c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\native\android\ant.properties to platforms\android\ant.properties
    1>  ------ Done copying native files to platforms\android
    1>  ------ Updating plugins
    1>  ------ Currently installed plugins:
    1>  ------ Currently installed dependent plugins:
    1>  ------ Currently configured plugins:
    1>  ------ Preparing platform: android
    1>  Generating config.xml from defaults for platform "android"
    1>  Calling plugman.prepare for platform "android"
    1>  Preparing android project
    1>  Processing configuration changes for plugins.
    1>  Iterating over installed plugins: []
    1>  Writing out cordova_plugins.js...
    1>  Wrote out Android application name to "BlankCordovaApp5"
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-hdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-ldpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-mdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-xhdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-hdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-ldpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-mdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-xhdpi\screen.png
    1>  splash screens: [{"src":"res/screens/android/screen-hdpi-landscape.png","density":"land-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-landscape.png","density":"land-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-landscape.png","density":"land-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-landscape.png","density":"land-xhdpi","platform":"android"},{"src":"res/screens/android/screen-hdpi-portrait.png","density":"port-hdpi","platform":"android"},{"src":"res/screens/android/screen-ldpi-portrait.png","density":"port-ldpi","platform":"android"},{"src":"res/screens/android/screen-mdpi-portrait.png","density":"port-mdpi","platform":"android"},{"src":"res/screens/android/screen-xhdpi-portrait.png","density":"port-xhdpi","platform":"android"}]
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-hdpi-landscape.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-hdpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-ldpi-landscape.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-ldpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-mdpi-landscape.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-mdpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-xhdpi-landscape.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-land-xhdpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-hdpi-portrait.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-hdpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-ldpi-portrait.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-ldpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-mdpi-portrait.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-mdpi\screen.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\screens\android\screen-xhdpi-portrait.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-port-xhdpi\screen.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-hdpi\icon.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-ldpi\icon.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-mdpi\icon.png
    1>  deleted: c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-xhdpi\icon.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\icons\android\icon-36-ldpi.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-ldpi\icon.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\icons\android\icon-48-mdpi.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-mdpi\icon.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\icons\android\icon-72-hdpi.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-hdpi\icon.png
    1>  copying image from c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\res\icons\android\icon-96-xhdpi.png to c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\res\drawable-xhdpi\icon.png
    1>  Wrote out Android package name to "io.cordova.myappe184054a2d3b40158266a9335ee64b7e"
    1>  ------ Copied c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\bin\Android\Debug\VSBuildInfo.xml to platforms\android\assets\www\VSBuildInfo.xml
    1>  ------ Building platform: android
    1>  Debug
    1>  ------ Build configuration options: --debug
    1>  Running command: cmd "/s /c ""c:\users\test\documents\visual studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\cordova\build.bat" --debug --ant ""
    1>  Buildfile: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\build.xml
    1>
    1>  -set-mode-check:
    1>
    1>  -set-debug-files:
    1>
    1>  -check-env:
    1>   [checkenv] Android SDK Tools Revision 24.3.2
    1>   [checkenv] Installed at C:\Users\test\AppData\Local\Android\android-sdk
    1>
    1>  -setup:
    1>       [echo] Project Name: MainActivity
    1>    [gettype] Project Type: Application
    1>
    1>  -set-debug-mode:
    1>
    1>  -debug-obfuscation-check:
    1>
    1>  -pre-build:
    1>
    1>  -build-setup:
    1>  [getbuildtools] Using latest Build Tools: 23.0.0 rc2
    1>       [echo] Resolving Build Target for MainActivity...
    1>  [gettarget] Project Target:   Android 5.0.1
    1>  [gettarget] API level:        21
    1>       [echo] ----------
    1>       [echo] Creating output directories if needed...
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build\res
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build\rsObj
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build\rsLibs
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-gen
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build\classes
    1>      [mkdir] Created dir: c:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\ant-build\dexedLibs
    1>       [echo] ----------
    1>       [echo] Resolving Dependencies for MainActivity...
    1>  [dependency] Library dependencies:
    1>  [dependency]
    1>  [dependency] ------------------
    1>  [dependency] Ordered libraries:
    1>  [dependency]
    1>  [dependency] ------------------
    1>       [echo] ----------
    1>       [echo] Building Libraries with 'debug'...
    1>
    1>  nodeps:
    1>
    1>  -set-mode-check:
    1>
    1>  -set-debug-files:
    1>
    1>  -check-env:
    1>   [checkenv] Android SDK Tools Revision 24.3.2
    1>   [checkenv] Installed at C:\Users\test\AppData\Local\Android\android-sdk
    1>
    1>  -setup:
    1>       [echo] Project Name: MainActivity
    1>    [gettype] Project Type: Android Library
    1>
    1>  -set-debug-mode:
    1>
    1>  -debug-obfuscation-check:
    1>
    1>  -pre-build:
    1>
    1>  -build-setup:
    1>  [getbuildtools] Using latest Build Tools: 23.0.0 rc2
    1>       [echo] Resolving Build Target for MainActivity...
    1>  [gettarget] Project Target:   Android 5.0.1
    1>  [gettarget] API level:        21
    1>       [echo] ----------
    1>       [echo] Creating output directories if needed...
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\res
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\libs
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build\res
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build\rsObj
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build\rsLibs
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-gen
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build\classes
    1>      [mkdir] Created dir: C:\Users\test\Documents\Visual Studio 2015\Projects\BlankCordovaApp5\BlankCordovaApp5\platforms\android\CordovaLib\ant-build\dexedLibs
    1>       [echo] ----------
    1>       [echo] Resolving Dependencies for MainActivity...
    1>  [dependency] Library dependencies:
    1>  [dependency] No Libraries
    1>  [dependency]
    1>  [dependency] ------------------
    1>
    1>  -code-gen:
    1>  [mergemanifest] Merging AndroidManifest files into one.
    1>  [mergemanifest] Manifest merger disabled. Using project manifest only.
    1>       [echo] Handling aidl files...
    1>       [aidl] No AIDL files to compile.
    1>       [echo] ----------
    1>       [echo] Handling RenderScript files...
    1>       [echo] ----------
    1>       [echo] Handling Resources...
    1>       [aapt] Generating resource IDs...

  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Jun 2015 Link to this post

    Hi Giovanni,

    Telerik AppBuilder is a cloud-based development environment that allows you to build hybrid mobile apps leveraging Cordova. We provide a VisualStudio extension for AppBuilder which allows you to take advantage of the Telerik Platform cloud services. However, looking at your stack trace I don't think you are utilizing our environment and tools.

    This is why I cannot comment on the issues you are having. But if you decide to try AppBuilder, you can use the 30day trial you're currently running and evaluate the features and functionality AppBuilder offers. In that case, we will be more than happy to help you resolve issues or address questions on the development of mobile apps within AppBuilder.

    Regards,
    Tina Stancheva
    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