After adding your plugin my android build fails and I cannot build new applications until I remove the plugin again.
Here is my log:
cordova run android --verbose
cordova library for "android" already exists. No need to download. Continuing.
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.console',
'org.apache.cordova.device',
'org.apache.cordova.dialogs',
'org.apache.cordova.file',
'org.apache.cordova.geolocation',
'org.apache.cordova.network-information',
'org.apache.cordova.splashscreen',
'org.apache.cordova.file-transfer',
'org.apache.cordova.inappbrowser',
'com.smartmobilesoftware.inappbilling',
'cc.fovea.plugins.inapppurchase',
'com.phonegap.plugins.OrientationLock',
'de.appplant.cordova.plugin.local-notification',
'com.ququplay.websocket.WebSocket',
'org.apache.cordova.globalization',
'de.appplant.cordova.plugin.background-mode',
'org.apache.cordova.vibration',
'nl.x-services.plugins.socialsharing',
'com.phonegap.plugins.facebookconnect',
'com.aquto.cordova.AppleAdvertising',
'com.liyamahendra.cordova.plugins.flurry',
'com.liyamahendra.cordova.plugins.playhaven',
'org.apache.cordova.screenshot' ]
Writing out cordova_plugins.js...
Ensuring plugin "cc.fovea.plugins.inapppurchase" is installed correctly...
Plugin "cc.fovea.plugins.inapppurchase" is good to go.
Ensuring plugin "com.aquto.cordova.AppleAdvertising" is installed correctly...
Plugin "com.aquto.cordova.AppleAdvertising" is good to go.
Ensuring plugin "com.liyamahendra.cordova.plugins.flurry" is installed correctly...
Plugin "com.liyamahendra.cordova.plugins.flurry" is good to go.
Ensuring plugin "com.liyamahendra.cordova.plugins.playhaven" is installed correctly...
Plugin "com.liyamahendra.cordova.plugins.playhaven" is good to go.
Ensuring plugin "com.phonegap.plugins.OrientationLock" is installed correctly...
Plugin "com.phonegap.plugins.OrientationLock" is good to go.
Ensuring plugin "com.phonegap.plugins.facebookconnect" is installed correctly...
Plugin "com.phonegap.plugins.facebookconnect" is good to go.
Ensuring plugin "com.ququplay.websocket.WebSocket" is installed correctly...
Plugin "com.ququplay.websocket.WebSocket" is good to go.
Ensuring plugin "com.smartmobilesoftware.inappbilling" is installed correctly...
Plugin "com.smartmobilesoftware.inappbilling" is good to go.
Ensuring plugin "de.appplant.cordova.plugin.background-mode" is installed correctly...
Plugin "de.appplant.cordova.plugin.background-mode" is good to go.
Ensuring plugin "de.appplant.cordova.plugin.local-notification" is installed correctly...
Plugin "de.appplant.cordova.plugin.local-notification" is good to go.
Ensuring plugin "nl.x-services.plugins.socialsharing" is installed correctly...
Plugin "nl.x-services.plugins.socialsharing" is good to go.
Ensuring plugin "org.apache.cordova.console" is installed correctly...
Plugin "org.apache.cordova.console" is good to go.
Ensuring plugin "org.apache.cordova.device" is installed correctly...
Plugin "org.apache.cordova.device" is good to go.
Ensuring plugin "org.apache.cordova.dialogs" is installed correctly...
Plugin "org.apache.cordova.dialogs" is good to go.
Ensuring plugin "org.apache.cordova.file" is installed correctly...
Plugin "org.apache.cordova.file" is good to go.
Ensuring plugin "org.apache.cordova.file-transfer" is installed correctly...
Plugin "org.apache.cordova.file-transfer" is good to go.
Ensuring plugin "org.apache.cordova.geolocation" is installed correctly...
Plugin "org.apache.cordova.geolocation" is good to go.
Ensuring plugin "org.apache.cordova.globalization" is installed correctly...
Plugin "org.apache.cordova.globalization" is good to go.
Ensuring plugin "org.apache.cordova.inappbrowser" is installed correctly...
Plugin "org.apache.cordova.inappbrowser" is good to go.
Ensuring plugin "org.apache.cordova.network-information" is installed correctly...
Plugin "org.apache.cordova.network-information" is good to go.
Ensuring plugin "org.apache.cordova.screenshot" is installed correctly...
Plugin "org.apache.cordova.screenshot" is good to go.
Ensuring plugin "org.apache.cordova.splashscreen" is installed correctly...
Plugin "org.apache.cordova.splashscreen" is good to go.
Ensuring plugin "org.apache.cordova.vibration" is installed correctly...
Plugin "org.apache.cordova.vibration" is good to go.
Wrote out Android application name to "Project 2.0"
Wrote out Android package name to "de.project.app"
Running app on platform "android" via command "/Users/<user>/Project/20/Project/platforms/android/cordova/run" --device
Looks like your environment fully supports cordova-android development!
exec: ant clean -f /Users/<user>/Project/20/Project/platforms/android/build.xml
[ 'ant clean -f /Users/<user>/Project/20/Project/platforms/android/build.xml',
null,
'Buildfile: /Users/<user>/Project/20/Project/platforms/android/build.xml\n\n-check-env:\n [checkenv] Android SDK Tools Revision 22.6.2\n [checkenv] Installed at /Users/<user>/.adt\n\n-setup:\n [echo] Project Name: Project20\n [gettype] Project Type: Application\n\n-pre-clean:\n\nclean:\n [delete] Deleting directory /Users/<user>/Project/20/Project/platforms/android/bin\n [delete] Deleting directory /Users/<user>/Project/20/Project/platforms/android/gen\n[getlibpath] Library dependencies:\n[getlibpath] No Libraries\n [subant] No sub-builds to iterate on\n\nBUILD SUCCESSFUL\nTotal time: 0 seconds\n',
'' ]
exec: ant debug -f /Users/<user>/Project/20/Project/platforms/android/build.xml
[ 'ant debug -f /Users/<user>/Project/20/Project/platforms/android/build.xml',
{ [Error: Command failed:
BUILD FAILED
/Users/<user>/.adt/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/<user>/.adt/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 2 seconds
] killed: false, code: 1, signal: null },
'Buildfile: /Users/<user>/Project/20/Project/platforms/android/build.xml\n\n-set-mode-check:\n\n-set-debug-files:\n\n-check-env:\n [checkenv] Android SDK Tools Revision 22.6.2\n [checkenv] Installed at /Users/<user>/.adt\n\n-setup:\n [echo] Project Name: Project20\n [gettype] Project Type: Application\n\n-set-debug-mode:\n\n-debug-obfuscation-check:\n\n-pre-build:\n\n-build-setup:\n[getbuildtools] Using latest Build Tools: 18.1.0\n [echo] Resolving Build Target for Project20...\n[gettarget] Project Target: Android 4.2.2\n[gettarget] API level: 17\n [echo] ----------\n [echo] Creating output directories if needed...\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin/res\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin/rsObj\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin/rsLibs\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/gen\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin/classes\n [mkdir] Created dir: /Users/<user>/Project/20/Project/platforms/android/bin/dexedLibs\n [echo] ----------\n [echo] Resolving Dependencies for Project20...\n[dependency] Library dependencies:\n[dependency] No Libraries\n[dependency] \n[dependency] ------------------\n [echo] ----------\n [echo] Building Libraries with \'debug\'...\n [subant] No sub-builds to iterate on\n\n-code-gen:\n[mergemanifest] Merging AndroidManifest files into one.\n[mergemanifest] Manifest merger disabled. Using project manifest only.\n [echo] Handling aidl files...\n [aidl] Found 1 AIDL files.\n [aidl] Compiling 1 AIDL files.\n [echo] ----------\n [echo] Handling RenderScript files...\n [echo] ----------\n [echo] Handling Resources...\n [aapt] Generating resource IDs...\n [echo] ----------\n [echo] Handling BuildConfig class...\n[buildconfig] Generating BuildConfig class.\n\n-pre-compile:\n [echo] Set jars path to: /Users/<user>/Project/20/Project/platforms/android/libs/FlurryAds_3.4.0.jar:/Users/<user>/Project/20/Project/platforms/android/libs/spring-android-core-1.0.1.RELEASE.jar:/Users/<user>/Project/20/Project/platforms/android/libs/android-support-v4.jar:/Users/<user>/Project/20/Project/platforms/android/libs/cordova-3.2.0-rc1.jar:/Users/<user>/Project/20/Project/platforms/android/libs/gcm.jar:/Users/<user>/Project/20/Project/platforms/android/libs/FlurryAnalytics_3.4.0.jar:/Users/<user>/Project/20/Project/platforms/android/libs/json-smart-1.1.1.jar:/Users/<user>/Project/20/Project/platforms/android/libs/spring-android-rest-template-1.0.1.RELEASE.jar:/Users/<user>/Project/20/Project/platforms/android/libs/commons-lang-2.6.jar:/Users/<user>/Project/20/Project/platforms/android/libs/json-path-0.8.1.jar:/Users/<user>/Project/20/Project/platforms/android/libs/java_websocket.jar\n\n-compile:\n [javac] Compiling 118 source files to /Users/<user>/Project/20/Project/platforms/android/bin/classes\n [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release\n [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release\n [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.\n [javac] /Users/<user>/Project/20/Project/platforms/android/src/org/apache/cordova/screenshot/Screenshot.java:58: error: no suitable method found for put(String,String)\n [javac] \t\t\t\t\t\t\tjsonRes.put("filePath",f.getAbsolutePath());\n [javac] \t\t\t\t\t\t\t ^\n [javac] method JSONArray.put(int,boolean) is not applicable\n [javac] (argument mismatch; String cannot be converted to int)\n [javac] method JSONArray.put(int,double) is not applicable\n [javac] (argument mismatch; String cannot be converted to int)\n [javac] method JSONArray.put(int,int) is not applicable\n [javac] (argument mismatch; String cannot be converted to int)\n [javac] method JSONArray.put(int,long) is not applicable\n [javac] (argument mismatch; String cannot be converted to int)\n [javac] method JSONArray.put(int,Object) is not applicable\n [javac] (argument mismatch; String cannot be converted to int)\n [javac] Note: Some input files use or override a deprecated API.\n [javac] Note: Recompile with -Xlint:deprecation for details.\n [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output\n [javac] 1 error\n [javac] 3 warnings\n',
'\nBUILD FAILED\n/Users/<user>/.adt/tools/ant/build.xml:720: The following error occurred while executing this line:\n/Users/<user>/.adt/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.\n\nTotal time: 2 seconds\n' ]
/Users/<user>/Project/20/Project/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error executing "ant debug -f /Users/<user>/Project/20/Project/platforms/android/build.xml":
BUILD FAILED
/Users/<user>/.adt/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/<user>/.adt/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 2 seconds
child_process.spawn(/Users/<user>/Project/20/Project/platforms/android/cordova/run,[--device]) = 8
Error: An error occurred while running the android project.
/Users/<user>/Project/20/Project/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error executing "ant debug -f /Users/<user>/Project/20/Project/platforms/android/build.xml":
BUILD FAILED
/Users/<user>/.adt/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/<user>/.adt/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 2 seconds
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/cordova/src/run.js:67:22)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Socket.<anonymous> (child_process.js:956:11)
at Socket.EventEmitter.emit (events.js:95:17)
at Pipe.close (net.js:465:12)
sebastians-mbp:Project <user>$
sebastians-mbp:Project <user>$ cordova build ios
Generating config.xml from defaults for platform "ios"
Preparing ios project
Compiling app on platform "ios" via command "/Users/<user>/Project/20/Project/platforms/ios/cordova/build"
[Error: An error occurred while building the ios project.2014-04-17 15:02:03.482 xcodebuild[43953:4313] DeveloperPortal: Using pre-existing current store at URL (file:///Users/<user>/Library/Developer/Xcode/DeveloperPortal%205.1.1.db).
2014-04-17 15:02:04.507 xcodebuild[43963:441f] DeveloperPortal: Using pre-existing current store at URL (file:///Users/<user>/Library/Developer/Xcode/DeveloperPortal%205.1.1.db).
2014-04-17 15:02:05.489 xcodebuild[43973:470b] DeveloperPortal: Using pre-existing current store at URL (file:///Users/<user>/Library/Developer/Xcode/DeveloperPortal%205.1.1.db).
** BUILD FAILED **
The following build commands failed:
CompileC build/Project\ 2.0.build/Debug-iphoneos/Project\ 2.0.build/Objects-normal/armv7/Screenshot.o Project\ 2.0/Plugins/org.apache.cordova.screenshot/Screenshot.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
** BUILD FAILED **
The following build commands failed:
CompileC build/Project\ 2.0.build/Debug-iphonesimulator/Project\ 2.0.build/Objects-normal/i386/Screenshot.o Project\ 2.0/Plugins/org.apache.cordova.screenshot/Screenshot.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
]
Hello.
After adding your plugin my android build fails and I cannot build new applications until I remove the plugin again.
Here is my log: