When building the project for android platform, the build does not have the referenced project
SalesforceSDK
SmartStore
SmartSync
When trying to deploy on phone or emulator I got these errors
06-07 20:25:49.001: E/AndroidRuntime(8688): FATAL EXCEPTION: main
06-07 20:25:49.001: E/AndroidRuntime(8688): java.lang.RuntimeException: Unable to instantiate application com.salesforce.androidsdk.smartsync.app.HybridAppWithSmartSync: java.lang.ClassNotFoundException: Didn't find class "com.salesforce.androidsdk.smartsync.app.HybridAppWithSmartSync" on path: /data/app/com.ionicframework.smartsync465183-2.apk
Please find information about my environment
OS : Windows 7
C:\Development>node --version
v0.12.0
C:\Development>ionic --version
1.3.21
C:\Development>cordova --version
5.0.0
C:\Development\Ionic\testSync>ionic build android
Updated the hooks directory to have execute permissions
running cordova build android
Running command: "C:\Program Files\nodejs\node.exe" C:\Development\Ionic\testSync\hooks\after_prepare\010_add_platform_class.js C:\Development\Ionic\testSync
add to body class: platform-android
Running command: C:\Development\Ionic\testSync\platforms\android\cordova\build.bat
Buildfile: C:\Development\Ionic\testSync\platforms\android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.1
[checkenv] Installed at C:\Development\Eclipse ADT Bundle\adt-bundle-windows-x86_64-20140702\sdk
-setup:
[echo] Project Name: com.plugin.gcm.PushHandlerActivity
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for com.plugin.gcm.PushHandlerActivity...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for com.plugin.gcm.PushHandlerActivity...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.1
[checkenv] Installed at C:\Development\Eclipse ADT Bundle\adt-bundle-windows-x86_64-20140702\sdk
-setup:
[echo] Project Name: com.plugin.gcm.PushHandlerActivity
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 20.0.0
[echo] Resolving Build Target for com.plugin.gcm.PushHandlerActivity...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[echo] ----------
[echo] Creating output directories if needed...
[echo] ----------
[echo] Resolving Dependencies for com.plugin.gcm.PushHandlerActivity...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode...
-crunch:
[crunch] Crunching PNG Files in source dir: C:\Development\Ionic\testSync\platforms\android\CordovaLib\res
[crunch] To destination dir: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources...
-package:
[echo] Library project: do not package apk...
-post-package:
-do-debug:
[echo] Library project: do not create apk...
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Merging manifests from project and 1 libraries.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
[echo] Set jars path to: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\classes.jar;C:\Development\Ionic\testSync\platforms\android\libs\gcm.jar;C:\Development\Ionic\testSync\platforms\android\libs\android-support
-v13.jar
-compile:
[javac] Compiling 3 source files to C:\Development\Ionic\testSync\platforms\android\ant-build\classes
-post-compile:
-obfuscate:
-dex:
[dex] input: C:\Development\Ionic\testSync\platforms\android\ant-build\classes
[dex] input: C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\classes.jar
[dex] input: C:\Development\Ionic\testSync\platforms\android\libs\gcm.jar
[dex] input: C:\Development\Ionic\testSync\platforms\android\libs\android-support-v13.jar
[dex] Using Pre-Dexed classes-af14db5abd752e9dd6fd89da49a4190d.jar <- C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build\classes.jar
[dex] Using Pre-Dexed gcm-13efb420c9c8e58ed22f9c64058f4a2b.jar <- C:\Development\Ionic\testSync\platforms\android\libs\gcm.jar
[dex] Using Pre-Dexed android-support-v13-d66e558c7e3bb8dfbf2d16f80dd6635a.jar <- C:\Development\Ionic\testSync\platforms\android\libs\android-support-v13.jar
[dex] Found Deleted Target File
[dex] Converting compiled files and external libraries into C:\Development\Ionic\testSync\platforms\android\ant-build\classes.dex...
[dx] Merged dex A (18 defs/18.7KiB) with dex B (223 defs/326.3KiB). Result is 241 defs/419.0KiB. Took 0.3s
[dx] Merged dex A (241 defs/419.0KiB) with dex B (4 defs/18.7KiB). Result is 245 defs/558.6KiB. Took 0.1s
[dx] Merged dex A (245 defs/558.6KiB) with dex B (535 defs/572.2KiB). Result is 780 defs/1470.2KiB. Took 0.3s
-crunch:
[crunch] Crunching PNG Files in source dir: C:\Development\Ionic\testSync\platforms\android\res
[crunch] To destination dir: C:\Development\Ionic\testSync\platforms\android\ant-build\res
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-hdpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-hdpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-hdpiicon.png: 142% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-hdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-hdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-hdpiscreen.png: 89% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-ldpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-ldpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-ldpiscreen.png: 109% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-mdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-mdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-mdpiscreen.png: 115% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-xhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-xhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-xhdpiscreen.png: 113% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-xxhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-xxhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-xxhdpiscreen.png: 118% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-land-xxxhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-land-xxxhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-land-xxxhdpiscreen.png: 110% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-ldpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-ldpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-ldpiicon.png: 0% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-mdpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-mdpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-mdpiicon.png: 0% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-hdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-hdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-hdpiscreen.png: 92% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-ldpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-ldpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-ldpiscreen.png: 112% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-mdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-mdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-mdpiscreen.png: 113% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-xhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-xhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-xhdpiscreen.png: 116% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-xxhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-xxhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-xxhdpiscreen.png: 110% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-port-xxxhdpi\screen.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-port-xxxhdpi\screen.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-port-xxxhdpiscreen.png: 110% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-xhdpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-xhdpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-xhdpiicon.png: 94% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-xxhdpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-xxhdpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-xxhdpiicon.png: 105% size of source)
[crunch] Processing image to cache: C:\Development\Ionic\testSync\platforms\android\res\drawable-xxxhdpi\icon.png => C:\Development\Ionic\testSync\platforms\android\ant-build\res\drawable-xxxhdpi\icon.png
[crunch](processed image to cache entry C:DevelopmentIonictestSyncplatformsandroidant-buildresdrawable-xxxhdpiicon.png: 139% size of source)
[crunch] Crunched 18 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Creating com.plugin.gcm.PushHandlerActivity-debug-unaligned.apk and signing it with a debug key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: C:\Development\Ionic\testSync\platforms\android\ant-build\com.plugin.gcm.PushHandlerActivity-debug.apk
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\ant-build\build.prop
[propertyfile] Updating property file: C:\Development\Ionic\testSync\platforms\android\ant-build\build.prop
-post-build:
[move] Moving 1 file to C:\Development\Ionic\testSync\platforms\android\ant-build
[move] Moving 1 file to C:\Development\Ionic\testSync\platforms\android\CordovaLib\ant-build
debug:
BUILD SUCCESSFUL
Total time: 15 seconds
Built the following apk(s):
C:\Development\Ionic\testSync\platforms\android\ant-build\com.plugin.gcm.PushHandlerActivity-debug.apk
C:\Development\Ionic\testSync\platforms\android\ant-build\MainActivity-debug.apk