I have to test my hybrid mobile application on my android device,I have selected "USB debugging" in my phone and I have selected the "Unknown sources" option,but when I try to deploy my application in my mobile I get this error:
Building package: [D:\WebMobile\test\backupsProjetWebMobile2\KendoUITabStrip1\obj\Debug\MyProjet.zip]
Project files uploaded to the cloud.
Sending build request for project MyProjet with parameters ProjectTypeGuids={070BCB52-5A75-4F8C-A973-144AF0EAFCC9}
Platform=Android
Configuration=Debug
LiveSyncToken=5uW/86s7080iMfWs0yNn+vJIKWo6n1qh4Lpa8kEnoUNFIaJOOQSDimQ9e0N6ELxXgt2bTOb/Xp6eRqCttuaoxQCzlLku533tlF1hvwrKPpxPeX/CfV/aGFN8Wr6MJl4D.
C:\Users\Client\AppData\Local\Microsoft\VisualStudio\14.0\Extensions\zc3hmmck.xbh\Targets\Build.targets(189,3): error : Server build failed. Server output: Project "MyProjet.tmp.proj" (default targets):
android Build Tooling revision 2015.11.03.5r
Warning: Failed to install 'cordova-plugin-mapbox':Error: Variable(s) missing: ACCESS_TOKEN
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/cordova-lib/cordova-lib/src/plugman/install.js:324:23
at _fulfilled (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:749:13)
at /home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:557:44
at flush (/home/builder/BpcTooling/Cordova3/node_modules/plugman/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:419:13)
Warning: Variable(s) missing: ACCESS_TOKEN
Warning: /home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189
Warning: throw Error("exit code: " + code);
^
Warning: Error: exit code: 1
at Error (<anonymous>)
at ChildProcess.<anonymous> (/home/builder/BpcTooling/Cordova3/node_modules/cordova-build-utils/bin/install-plugins-3.js:189:14)
at ChildProcess.emit (events.js:98:17)
at Process.ChildProcess._handle.onexit (child_process.js:810:12)
Error: Build failed during execution
Error: 'Build failed with error code 8'
Done building project "MyProjet.tmp.proj" -- FAILED.
.
Done building project "MyProjet.iceproj" -- FAILED.
Build FAILED.
I work with Telerik-AppBuilder visual Studio 2015 extension(kendo-ui) my android phone is Samsung Galaxy Star Duos GT-S7262 version 4.1.2
any help please and thanks
update:
I have folloewed this link [https://github.com/Telerik-Verified-Plugins/Mapbox] but I get this error:1
C:\Users\Admin>cordova plugin add https://github.com/Telerik-Verified-Plugins/Mapbox --variable ACCESS_TOKEN=my.access.token
Current working directory is not a Cordova-based project.
I have installed the cordova-plugins with npm,but I still get the problem :(
So the question boils down to: how in Visual Studio do you provide Cordova variables to plugins?
(You tried adding the plugin from the c:/users/admin folder which is not your project folder, that's why the Cordova CLI said: "Current working directory is not a Cordova-based project.")
I'm assuming you're using the AppBuilder extension for Visual Studio. If so, please read this doc, especially about how to configure variables:
http://docs.telerik.com/platform/appbuilder/creating-your-project/using-plugins/using-verified-plugins/install-verified-plugins
Related
I get this issue after my first android build; then, before that, the project run in development in the device and even in an emulator. Also the error happens in the emulator too.
I has been researching about that. Update to the current last versions of NativeScript tns-android: 5.4.0 tns-core-modules: 5.4.3 nativescript-vue: 2.2.2, also update the firebase plugin nativescript-plugin-firebase: 9.0.1. And this doesn’t allows me to continue the project. I am so frustrated in this moment about this issue.
Unable to apply changes on device: DEVICE####.
Error is: Cannot read property 'env' of undefined.
Using the --log trace this is shown
Will emit event liveSyncError with data { error:
{ Error: Command ./gradlew failed with exit code 1
at Errors.fail (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/common/errors.js:126:28)
at Errors.failWithoutHelp (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/common/errors.js:136:21)
at AndroidProjectService.<anonymous> (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/services/android-project-service.js:666:34)
at Generator.throw (<anonymous>)
at rejected (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/services/android-project-service.js:11:65)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
name: 'Exception',
message: 'Command ./gradlew failed with exit code 1',
stack: 'Error: Command ./gradlew failed with exit code 1\n at Errors.fail (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/common/errors.js:126:28)\n at Errors.failWithoutHelp (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/common/errors.js:136:21)\n at AndroidProjectService.<anonymous> (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/services/android-project-service.js:666:34)\n at Generator.throw (<anonymous>)\n at rejected (/Users/user/.nvm/versions/node/v8.14.1/lib/node_modules/nativescript/lib/services/android-project-service.js:11:65)\n at <anonymous>\n at process._tickCallback (internal/process/next_tick.js:189:7)',
errorCode: 127,
suppressCommandHelp: true,
proxyAuthenticationRequired: false,
printOnStdout: undefined },
.
.
.
Thanks in advance for any help, this has totally block the development of the project.
this error is expected if you are trying to use nativescript-dev-webpack#next with latest official version of NativeScript CLI (5.4.2) as they are not compatible with one another (preparing for NativeScript 6.0 release).
If you would like to use nativescript-dev-webpack#next you will need to install nativescript#next as well.
Hope this helps!
This week I updated Android Studio to version 2.0. There is a known issue concerning Gradle, so I added export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=true" to my ~/.profile (on Ubuntu 15.10).
But now I get this error when compiling:
Error:Abnormal build process termination:
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv6Addresses=true
Build process started. Classpath: /opt/android-studio/lib/jps-launcher.jar:/usr/lib/jvm/java-8-oracle/lib/tools.jar:/opt/android-studio/lib/optimizedFileManager.jar:/opt/android-studio/lib/ecj-4.4.jarError connecting to ::1:44484; reason: Protocol family unavailable: /0:0:0:0:0:0:0:1:44484
java.net.SocketException: Protocol family unavailable: /0:0:0:0:0:0:0:1:44484
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:210)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:207)
at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1208)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.ChannelOutboundHandlerAdapter.connect(ChannelOutboundHandlerAdapter.java:47)
at io.netty.channel.ChannelHandlerInvokerUtil.invokeConnectNow(ChannelHandlerInvokerUtil.java:117)
at io.netty.channel.DefaultChannelHandlerInvoker.invokeConnect(DefaultChannelHandlerInvoker.java:248)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:218)
at io.netty.channel.AbstractChannelHandlerContext.connect(AbstractChannelHandlerContext.java:212)
What can I do?
Use the opposite flag _JAVA_OPTIONS = -Djava.net.preferIPv4Stack=true
Can't build streamer tutorial_3 for android on mac
I,ve got all environment variables needed.
My eclipse can't to resolve some symbols, but to some of them i can get by pushing F3. It's very strange for me.
Here is the command line output:
23:04:06 **** Build of configuration Default for project Tutorial3 ****
/Users/antonivanuskin/android-develop/android-ndk-r10/ndk-build all
GStreamer : [GEN] => gst-build-armeabi/gstreamer_android.c
GStreamer : [COMPILE] => gst-build-armeabi/gstreamer_android.c
GStreamer : [LINK] => gst-build-armeabi/libgstreamer_android.so
lto1: fatal error: bytecode stream generated with LTO version 2.2 instead of the expected 3.0
compilation terminated.
lto-wrapper: /Users/antonivanuskin/android-develop/android-ndk-r10/toolchains/arm- linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-gcc returned 1 exit status
/Users/antonivanuskin/android-develop/android-ndk-r10/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/ld.gold: fatal error: lto-wrapper failed
collect2: error: ld returned 1 exit status
make: *** [buildsharedlibrary_armeabi] Error 1
23:04:10 Build Finished (took 3s.740ms)*
I use ndk-10r and gst-1.4.0.
I know that there is no interfaces/xoverlay in new streamer.
EDIT
I've built ok, but steel got underlines of many glib-types and GST-macross. Here is a screenshot:
what is interesting that i have no underlined headers, for example: i've include pthread.h but have got underlined pthread_t and phtread_key_t....
i think that i have not install some general libraries on my mac, something like libc or what ever...may it couse this problem? The problem is that i can't run my app from eclipse. and for more: i use DS-5 CE IDE
This is most likely because we build the android 1.4.x cerbero packages with the r9d NDK.
You might want to use the r9d NDK until we provide binaries built with a more recent NDK (started some builds to see if everything goes through fine).
Basically my problem is i can run the android app but i need to access the camera as well but thats where the problem starts
. i have tried reinstalling node.js , git , cordova but to no avail
my error is as follows
C:\hello>cordova plugin add org.apache.cordova.camera
Fetching plugin "org.apache.cordova.camera" via plugin registry
Error: Fetching plugin failed: Error: Failed to fetch package information for or
g.apache.cordova.camera
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\src\plugin.js:105:
41
at _rejected (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_mo
dules\q\q.js:808:24)
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j
s:834:30
at Promise.when (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node
_modules\q\q.js:1079:31)
at Promise.promise.promiseDispatch (C:\Users\user\AppData\Roaming\npm\node_m
odules\cordova\node_modules\q\q.js:752:41)
at C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.j
s:574:44
at flush (C:\Users\user\AppData\Roaming\npm\node_modules\cordova\node_module
s\q\q.js:108:17)
at process._tickCallback (node.js:415:13)
Advance thanks for anyone who helps
The directory is down: http://plugins.cordova.io/. Not sure when it will be fixed, but that's presumably the issue.
I've been trying to run a Phonegap application locally with this command:
phonegap local run android
Though I keep getting this error:
C:\Users\OmaR\Desktop\New folder\myapp>phonegap local run android [phonegap] compiling Android... [error] An error occurred while building the android project. module.js:340
throw err;
^ Error: Cannot find module 'C:\Users\OmaR\Desktop\New'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3
Try doing the same process in some new folder where the folder name does not have any space in it.
In the above case the folder name is "New folder".
Try with folder name without spaces.