Intel XDK Google + google services plugin - build fails - intel-xdk

I have developed a working hybrid application in which I am using "phonegap-googlemaps-plugin". This plugin needs as a dependency two other which downloads and installs automatically in the project. The dependencies are:
com.google.playservices and plugin.http.request
Using the Cordova-CLI, installing this plugin with the dependencies will fail building the project the 1st time because of a specific directory in the "playservices" plugin. To overcome this, I have to run "ant clean" in my project and also remove/rename that directory. Now, I am using Intel XDK and uploaded my app and installed most of my plugins successfully and run the application on my device. When I am trying to install the google play services plugin, it fails to build because of the reason I described above (I've run through the logs). How can I overcome this issue now?
I have attached the part of the log that shows the fail error
[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] Generating resource IDs...
[aapt] invalid resource directory name: .../App/platforms/android/com.google.playservices/google-play-services_lib/bin/res/crunch
BUILD FAILED
/Developer/android-sdk-linux/tools/ant/build.xml:653: The following error occurred while executing this line:
/Developer/android-sdk-linux/tools/ant/build.xml:698: null returned: 1
Total time: 5 seconds
Error code 1 for command: ant with args: release,-f,.../App/platforms /android/build.xml,-Dout.dir=ant-build,-Dgen.absolute.dir=ant-gen
Command finished with error code 2: .../App/platforms/android/cordova/build --release
Error: .../App/platforms/android/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/Developer/cordova/3.5.0-0.2.7/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Thanks in advance.

Related

why do I get Gradle task assemble Debug failed error

I imported a flutter project from GitHub. when I tried to run it I had this error(no errors in code). I could not figure out what this error is all about and I keep getting this error for every project which I import from GitHub.Please help me out!
This is the error:
Exception in thread "main" java.util.zip.ZipException: error in opening zip file.
Gradle threw an error while trying to update itself. Retrying the update...
Finished with error: Gradle task assembleDebug failed with exit code 1.
It's kinda common problem when you get a project from github and I solved it once with this answer.
Copy paste from there:
Open your Android Studio preferences(Command + ',') and go to
Languages and Frameworks -> Dart
Check "Enable Dart support for the project your_project_name"
In "Dart SDK path" click in "…" and navigate to flutter SDK directory.
Under that directory you'll find "bin/cache/dart-sdk". This is the
dart sdk path you should use.
Click "Apply"
flutter packages get
flutter run

facing build failed when running demandware project on eclipse from mac 10.12.06

error:-
check-node:
styles:
[echo] Running gulp build task for Mac OS X in /Users/admin/Documents/.../gulp_builder
[exec] env: node: No such file or directory
BUILD FAILED
/Users/admin/Documents/.../gulp_builder/builders.xml:84: exec returned: 127
Total time: 193 milliseconds
This is likely due to not having Gulp or some dependent component installed on the PATH being used by Eclipse. Without seeing more about your gulp_builder/builders.xml document I can't really comment as to what is missing. Can you post more context such as the 5 lines before and after and including line 84 of builders.xml
Agree with #sholsinger that more info would be better, but you may want to double-check that you have all of the node modules installed. You could run "npm install" in the terminal when you are in the directory where your package.json lives.

Android UiAutomator test case jar file is not working

I have been trying to write some instrumental test case of android code using UiAutomator tool. This test cases can be run via android studio without any problem. But now i want to install this test cases into device as a jar file and need to run via command line. I had tried the following link for building and deploying uiautomator tests:
https://stuff.mit.edu/afs/sipb/project/android/docs/tools/testing/testing_ui.html#creating
build.xml is generated but when command "ant build" is executed it shows error:
Android/Sdk/tools/ant/uibuild.xml:198: null returned: 1
After that i have tried to create jar files using gradle build instead of ant build tool using this link
http://wiliamsouza.github.io/#/2013/10/30/android-uiautomator-gradle-build-system
I have run the "gradle build" command from the project directory and output got;
Building dex...
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:assemble
:compileTestJava UP-TO-DATE
:processTestResources UP-TO-DATE
:testClasses UP-TO-DATE
:test
:check
:build
BUILD SUCCESSFUL
Total time: 7.709 secs
but there was no jar file found in "dist" folder. In have installed jar file found in build/libs folder,
adb push sample-0.1.jar /data/local/tmp/
then tried to run the test cases using the command
adb shell uiautomator runtest sample-0.1.jar -c com.test.uiautomator.sample.Sample
But it shows error as:
INSTRUMENTATION_RESULT: shortMsg=java.lang.RuntimeException
INSTRUMENTATION_RESULT: longMsg=Didn't find
class"com.test.uiautomator.sample.Sample"
on path: DexPathList[[zip
file"/system/framework/android.test.runner.jar",
zip file"/system/framework/uiautomator.jar",
zip file"/data/local/tmp/sample-0.1.jar"],
nativeLibraryDirectories=[/vendor/lib, /system/lib]]
INSTRUMENTATION_CODE: 0
Is anyone have any idea on this.. how can i create jar files of my uiautomator test cases and how can i run them via command line..?
Got a Solution !!!
Actually my requirement was to run instrumental test cases (UiAutomator in my case)through command line, for this purpose it is not necessary to generate a jar file of the test classes and install them to devices, instead we can create separate apk file of test case package and install them in the same way as application apk file is installed. And then run adb commands for executing the test cases. Please check the below link which has the detailed explanation.
https://developer.android.com/studio/test/command-line.html#RunTestsCommand

When uninstall nativescript plugin and run 'tns run android' has failed

I'm devloping a nativescript plugin.when I want to change something with the plugin at index.js. so I uninstall the plugin and explanatory note the plugin code in app project.Then I run 'tns run android' ,It's some error display:
...
Merged dex #46 (1 defs/1.3KiB)
Merged dex #47 (1 defs/1.4KiB)
Merged dex #48 (2513 defs/3231.2KiB)
Result is 2560 defs/4103.9KiB. Took 0.1s
:buildMetadata
Exception in thread "main" java.lang.IllegalArgumentException: Class android.support.v7.widget.SnapHelper$2 conflict: D:\app\toast-test\platforms\android\build\intermediates\transforms\dex\F0F1F2\debu
at com.telerik.metadata.ClassRepo.addToCache(ClassRepo.java:21)
at com.telerik.metadata.Builder.build(Builder.java:40)
at com.telerik.metadata.Generator.main(Generator.java:44)
:buildMetadata FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':buildMetadata'.
Process 'command 'C:\Program Files\Java\jdk1.8.0_112\bin\java.exe'' finished with non-zero exit value 1
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 41.154 secs
Command D:\app\toast-test\platforms\android\gradlew.bat failed with exit code 1
How can I rebuild my app success after delete some plugins in project?
and how to update the nativescript plugin to new version?
After removing a plugin with native dependencies in the form of .aar or .jar (those include plugins downloaded through a remote plugin repository like maven) in NativeScript 2.4 you need to re-add the platform.
tns plugin remove nativescript-plugin
tns platform remove android
tns platform add android / tns run/build android
With the coming 2.5 release clearing any traces of the old plugin will be done by the CLI and no manual steps should be required besides simply removing the plugin from your project.

IBM Worklight 6.0 - Build issues

I am just running a test app, and my build fails with the following logs, I have tried restarting, changing workpace, creating test app but dint work. please let me know.
ipad build failed: Cannot overwrite template file '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/ipad/native/Settings.bundle/Root.plist'
[2013-08-23 12:04:10] FWLST1040E: iphone build failed: Cannot overwrite template file '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/iphone/native/Settings.bundle/Root.plist'
[2013-08-23 12:04:10] A core eclipse exception has occurred: Failed to read project description file from location '/Users/mspssmac-pc232938/Documents/Projects/FnApp/testApp/apps/testApp/android/native/.project'.
Thanks
djrecker
Try deleting the native folder
Try running Eclipse with the -clean flag
Is this a shared workspace between Eclipses? Does it work with a local workspace?
See if this helps: Worklight on OS X, iPhone and Android builds fail due to missing info.plist and other files
You have also asked this here: IBM Worklight - Build failed
A common issue for all seems to be:
A core eclipse exception has occurred: Failed to read project
description file from location ... [path to .project file]