I'm having an error that I can't find a solution for. I'm trying to get the Android emulator to work with a Cordova application in Netbeans 8.0. I get this error:
Creating android project...
Running command: C:\Users\SS&S\.cordova\lib\android\cordova\3.4.0\bin\create.bat --cli C:\xampp\htdocs\CordovaMapsSample\platforms\android com.coolappz.CordovaMapsSample CordovaMapsSample
'C:\Users\SS' is not recognized as an internal or external command,
operable program or batch file.
I have git, node.js, and cordova installed in their most recent versions, confirmed via the command prompt. I have checked my path in my environment variables for the Android Dev tools, and I've tried two versions of that path variable defined with and without escaping the ampersand with a caret (^). The issue shows up either way.
I still think the error is related to the ampersand, but I'm out of things that I know about to change.
Edit one: I've already modified the build path under environment variables. My problem persists. This is what I have:
%Path%;%ANDROID_PLATFORM_TOOLS%;%ANDROID_TOOLS%;C:\Users\SS^&S\AppData\Roaming\npm;C:\Users\SS^&S\AppData\Roaming\npm
Solved by creating a different user without ampersand in name.
Related
I'm attempting to install NativeScript with Angular2 with no luck. After installing TNS, I follow the next step which is Step 3. Install iOS and Android requirements in the tutorial and run the following command:
#powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"
However, I get the following error message every time I try it:
The error says: 'powershell' is not recognized as an internal or
external command, operable program or batch file.
My question is what can I do to fix the powershell command and get this installed? Do I have any other alternatives to install this?
Note: My PC is Windows 7 - 64 bit, and I have TNS installed correctly, I will greatly appreciate it if anyone know how to solve this problem. I just want to be able to install Nativescript and Angular2 and get started. Thank you!
UPDATE 1: I added the following to the environment variable: variable path cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
And I was able to finish the 3rd step on an elevate command prompt. I installed all the android components in accordance to the step, but when I went back to run the tns now I get the following error: tns is not recognized as an internal or external command
What can I do to fix this issue? Do I need to somehow revert the path variable to get the TNS working?
Sounds like you don;t have your environment path set.
You can either try to set your environment path or manually install everything needed for development with NativeScript.
For the first option you can try to set your path with:
cmd> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
And then try to run the script for the autmated instalation.
If you prefer to install everything "by hand" you can take a look at this article. Installing everything manually can sound intimidating, but at least you will have an idea what exactly you are going to use in the mobile development. When I say installing "by hand" I mean that instead of running the Powershell, you can install all the required dependences one by one (Node.js, JDK, Android SDK, Android build tools and environment path setup)
Add the following to the environment variable: variable path cmd
> set PATH=%PATH%;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
This should work.
I am currently using Eclipse to develop Android apps. Following the Android Developer tutorial, they had the option to program using the command line. I am interested in doing it this way but ran into a number of errors. I have tried several solutions available on the internet and I fear that I might have added to many things on my PATH file. None of the solutions have worked for me.
I am very lost with all these directories. Please help for Linux Mint specific distribution.
Key errors to address are:
android: command not found
and
ant debug
Buildfile: build.xml does not exist!
Build failed
I downloaded adt-bundle-linux-x86-20130717.
Update:
I think I managed to get the android command working by hardcoding the following on my bash.bashrc:
/etc/.../sdk/tools
/etc/.../sdk/platform-tools
Please let me know if it is recommended to do this another way.
However, ant debug is still not working.
If ADB is properly in your path, the android command should launch the SDK updater. Here is what I have in my .bashrc
# SDK
PATH=${PATH}:~/android-sdk/tools
PATH=${PATH}:~/android-sdk/platform-tools
You put the environment variable configuration in which files? configuration is completed, use the source command to run the file, or try to restart the computer
I tried using directly the sdk manager, using android studio, and using the ADT tools, whenever i try to run any of the above IDEs it gives me the following error:
Cannot run program "/home/igeeko/Downloads/android-studio/sdk/platform-
tools/adb": error=2, No such file or directory' while attempting to get adb version from '/home/igeeko/Downloads/android-studio/sdk/platform-tools/adb
how to get over it? i did not tamper with any android file, i just decompressed the compressed file and executed the executable file.
EDIT: i am using Xubuntu 13.04, I have not tried command line, i downloaded the ADT bundle from developer.android.com, extracted it and then tried to execute the executable file, i also got this error message,
i am able to create a virtual device, but not able to run it, it says that the "adb" file does not exist, it is there, and i have given read & write permissions to everyone on the file, so what might be the problem? and i am trying this since a long time
I'm using Windows 7 32-bit
I already installed all the required components and tested that following in cmd which are all working:
Ant
Java
Javac
Adb
Android
BUt when I try to create the project it says
There is no script engine for file extension “.js”
create C:\Users\user05\workspace\mobileApp com.mobileApp mobileApp
UPDATE:
Ok I finally solved the issues. The problem is that the js file on my computer is associated with notepad++, so for some reason it is causing some conflict with it.
I used this fix to solve the issue: link!
Reset by typing into the command line:
assoc .js=JSFILE
this information was found here:
https://stackoverflow.com/a/13446640/2358237
I'm trying to build the V8 javascript engine for Android but I can't succeed for some reason. I follow the instructions given here. It all starts very well. I can issue the make android_arm.release -j8 command from my terminal and it seems very sweet for a while. Then suddenly I get this output:
/bin/sh: 1: /home/dbm/android/ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/*-ar: not found
The statement is correct: there is no *-ar file at the specified location.
But what is an *-ar file? And how can I resolve this error?
The environment is a beast running Ubuntu 12.10 on a 64-bit architecture (with ia32-libs installed) and I build for/with/against Android NDK r8c.
There seems to be a problem in Ubuntu!?
Anyway - extracting via tar -jxf worked for me. See http://code.google.com/p/android/issues/detail?id=41187
The issue lies with the fact that the NDK build system prefixes the platform name to the commands that are run to build the source. If you notice the error you get, the correct platform prefix is missing from *-ar. Somehow, the platform name is being set to * instead of the correct prefix arm-linux-androideabi (giving the correct name arm-linux-androideabi-ar). You'll need to figure out where this information is being skipped. That should fix your problem.
PS. If I get some free time, I'll try and replicate your issue and see if I can give you the exact fix.
Use the 'tar -jxf' to extract the android ndk. If you use the 'Extract here' option, it seems to be leaving out some files.
ar is archive utility from gnu tools. Normally you should have a $NDK/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86/bin/arm-linux-androideabi-ar available in your tool chain. which looks like missing in yours.