Open noornabee opened 9 years ago
I'm getting the same error
Cordova CLI: 5.0.0
Gulp version: CLI version 3.9.0
Gulp local:
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.0
Ionic App Lib Version: 0.1.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Mac OS X Yosemite
Node Version: v0.12.4
Xcode version: Xcode 6.3.1 Build version 6D1002
same problem. Any progress on this issue?
https://github.com/forcedotcom/SalesforceMobileSDK-CordovaPlugin/issues/112
Same issue described here. Should be fixed with using android@3.6.4. App is running but now I have some other errors like:
"Uncaught module com.salesforce.plugin.oauth not found", source: file:///android_asset/www/cordova.js (59) or "Unable to open asset URL: file:///android_asset/www/src/.....
I have no problems with the project on iOS
@sevem I have exactly the same problem that you have. I am wondering have you figured it out? Thanks a lot!
Hi,Did not find a solution, i have manually build the apk on eclipse using the SDK Salesforce.Regards,Noor
On Wednesday, April 27, 2016 3:22 AM, Frank Wang <notifications@github.com> wrote:
@sevem I have exactly the same problem that you have. I am wondering have you figured it out? Thanks a lot!— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub
@noornabee may I ask you which version of SalesforceMobileSDK-CordovaPlugin are you using? which version of cordova platform and cordova CLI are you using? Really appreciate it!
I tried SalesforceMobileSDK-CordovaPlugin 4.0.2 and 4.1.1 cordova platform 5.0.0 and cordova CLI: 5.4.1 and latest one. None of them worked on Android.
Sorry but i didnot have my laptop and i dont remember the versions. Regards,Noor
On Wednesday, April 27, 2016 10:31 AM, Frank Wang <notifications@github.com> wrote:
@noornabee may I ask you which version of SalesforceMobileSDK-CordovaPlugin are you using? which version of cordova platform and cordova CLI are you using? Really appreciate it!I tried SalesforceMobileSDK-CordovaPlugin 4.0.2 and 4.1.1 cordova platform 5.0.0 and cordova CLI: 5.4.1 and latest one. None of them worked on Android.— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub
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