- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi I am here again I have the following issue... when I inlcude in my index.html the files
<script src="intelxdk.js" type="text/javascript"></script>
<script type="text/javascript" src="cordova.js"></script>
The intelxdk commands works in emulator but when I build the APK the intelxdk commands doesn't work, then according older posts I removed these files from my index.html and now the intelxdk commands doesn't work in emulator and APK file, then what is the solution for this because I need to work with intelxdk commands in my application.
Thank You in advance.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When you say "intelxdk commands" are you referring to the plugins? If you create a new blank project, does that build and emulate for you?
Dale
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I am talking for example
intel.xdk.device.uuid or intel.xdk.device.scanBarcode()
Yes I build a blank project and was the same issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
By the way I noticed now a warning in this plugin, can you tell me what does mean that?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See > http://stackoverflow.com/a/8111799/2914328 < for a definition of the word deprecated.
Do not use those deprecated intel.xdk plugins, they are no longer supported or maintained. They will all be permanently retired at the next major release of the Intel XDK.
Please see this doc page > https://software.intel.com/en-us/xdk/docs/intel-xdk-api-cordova-plugin-methods-properties-events <
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Lol.. I know what means the word deprecated the problem is that this application works fine the version I have in Apple Store and now I have to made a little modification and I found this problem, then I have to change all the plugins think that you must find a better solution and not deprecated all the intel.xdk plugins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Follow the link to the doc page, from there you'll find links to the rewritten Cordova versions of those plugins in github repos, which can be added to your project as third-party git plugins. That's as close to the originals as you can get. Otherwise, you'll need to rewrite your app using a Cordova equivalent plugin. The Emulate tab still "supports" them, but that is going away in the next release of the XDK.
We retired those APIs because they were badly out of date, and there are many equivalent open source plugins available that are supported by the open-source community and provide much better and up-to-date functionality.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Okay Paul I did that but now when I go to build the APK I get this error....
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileReleaseJava'. > Compilation failed; see the compiler error output for details. * 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: 31.571 secs ERROR building one of the platforms: Error: .../DoubleTap/platforms/android/gradlew: Command failed with exit code 1 You may not have the required environment or OS to build this project Error: .../DoubleTap/platforms/android/gradlew: Command failed with exit code 1 at ChildProcess.whenDone (.../DoubleTap/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:139:23) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:821:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The meat of that error is earlier in the log, what you gave me does not provide sufficient details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
log file attached
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the attached build log there is a problem with the Social Sharing plugin. Could be that you need to use CLI 5.4.1, but there is no way to say definitively what the reason is. Try removing it to see if the build succeeds, that will confirm that it is the source of the problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes I saw that and reinstalled the plugin and now works fine... let me ask you something... I try to integrate a ionic project into Intel XDK and I noticed that $ionicPlatform is not recognized and other ionic commands too... I try to find a similar command to solve the issue but if you have another idea could be appreciated.
Thank You!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry, but I'm not familiar with Ionic projects or the $ionicPlatform command, so I'm not able to help you out much with that question. What is the $ionicPlatform command supposed to do? Is this something you use on the command-line or something that is part of your app?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
$ionicPlatform is similar to DeviceReady but do not worried... thank you by your help.
Have a great day Paul
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey Paul today something weird happens.. I was programming and everything perfect and in the middle of the night around 12:20am here in Miami, FL... everything becomes slow and the emulator stopped only blank screen is shown... then I try to fire de deviceready event and receive this message
and in my code is cordova.js already included.
Please let me know if you turn off the server at some time or if you are under maintenance at this time every day
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Alexander -- the Emulate tab does not interact with any backend servers, but it does have problems. We are replacing that component with something much more reliable in an upcoming release. In the meantime, you may have to stop and restart the XDK from time to time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I closed the Intel XDK and restarted again and the same problem... take a look to this video
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I see a hooks directory in your project, not sure if it is empty or not, but that could be causing some issues if there is a hooks script in there. Or, possibly, one of the plugins is causing some strange init problem with the underlying cordova subsystem that is used by the Emulate tab...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Then what is the solution.. if you prefer I can send you the project in zip file
Thank You!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you have a plugin that includes hooks scripts it will not work with the XDK. If that directory contains hooks scripts it may be causing a problem. Are there scripts in that directory or is it empty?
Does the behavior change if you remove the plugins in the project? Keep a list of what you added, or make a copy of the project and remove plugins, one-by-one, from that copied project to see if it changes the behavior of the problem you are seeing.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page