While am debug my solution in Visual Studio 2015 Cordova this issue occured The command "platforms\android\cordova\clean.bat" exited with code 2.
In Visual Studio 2015, Menu: Tools => Options => Tools for Apache Cordova => Environment Variable Overrides set the correct ADT_HOME and JAVA_HOME.
Also Clean Cordova cache from the Cordova Tools. Then open and debug your project.
I ended in a similar issue when I installed the VS.Net2015 and tried to create a blank Cordova project and compile. I did try a lot of different things including reinstalling Android Studio and VS but none helped.
Finally what it boiled down to was that I had a 64Bit OS an installed a 32bit JDK which somehow didn't work well together. Downloaded the 64Bit JDK and corrected the Path in visual studio and now its working.
Regards
Kiran
I got the solution to it and fixed my issue.
Problem is you got set the Enviromnent path in your system properly
1 . Make sure you install JAVA and ANT
2 . Make sure you set the JAVA_HOME AND ANT_HOME along with the updated PATH in the System variable.
Restart your studio. this issue would be gone. njoy. :)
I got the same issue and resolved it today as follows:
Check cmd > java -d64 -version - JVM had error
Installed Java from java.com/en/download
Restarted PC
Check cmd > java -d64 -version - no error
Delete ..\bin\platforms\android folder {android was the platform for which I had the issue}
Clean Solution & Build Solution
Successfully deployed to Device now!
That error message unfortunately isn't very helpful. When I ran into this error, I was able to get more information by simply running that clean.bat file in a command prompt so I could see the actual error message. The path to the bat file is in the error message: "platforms\android\cordova\clean.bat".
For me it was simply that the path to my keystore file was incorrect in my build.json file. After I fixed that the clean worked fine.
Related
I have a .NET Framework (not .NET Core) C# Selenium project. It works under Windows 8.1/10.
I recently installed Rider in my new Ubuntu 18.04 instance. I installed Mono project using this guide but Rider shows 2 problems, after opening it up:
15:01 Project 'selenium_IALB' load finished with warnings: Object reference not set to an instance of an object
15:01 Project 'MICE' load finished with warnings: Task could not find "AxImp.exe" using the SdkToolsPath "/usr/lib/mono/4.5/" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.7.1\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed at (2686:5)
I found few questions answered here of how to resolve that problem on Windows for example but it says to install Windows SDK... which is not allowed on Ubuntu i guess (as i found).
As it is shown on the screen below, i have problems with some classes (yellow warning sign). In code it looks like they are missing.
The question is if it is normal that i have that "AxImp.exe" problem under Ubuntu and if yes, how can i solve it? It also does not work on Linux Mint.
EDIT: I resolved the issue of missing reference to those "yellow signed" classes. I've just change their names in the solution folder (ie. helpers.cs -> Helpers.cs). However, missing "AxImp.exe" file is still a problem and the solution does not compile.
I'm using android studio 2.4, And getting this error. Apparently I have to update my android plugin, but when I checked jcenter for new versions the only version
available was 2.5.0-alpha-preview-02. which would cause the exact same error.
I also see somewhere in the error message that it says I must replace the ANDROID_DAILY_OVERRIDE environment variable. But I really have no idea where to put this environment variable? Should it go to local.properties or is it an OS env variable? I was wondering if anybody else is facing this problem.
This is the full message
Error:(1, 0) The android gradle plugin version 2.5.0-alpha-preview-02 is too old, please update to the latest version.
To override this check from the command line please set the ANDROID_DAILY_OVERRIDE environment variable to "8d256f619ba96afd1273947e8b8bebea4cb2fd05"
Upgrade plugin to version 2.4.0-alpha7 and sync project<br>Open File
There is a 40 day limit for beta/alpha versions and after that, Android Studio forces you to update to the latest version.
But it doesn't exist (the newest is the alpha with AS 3.0) so a possible solution is setting that environment variable, executing in the command line (in MAC):
launchctl setenv ANDROID_DAILY_OVERRIDE 8d256f619ba96afd1273947e8b8bebea4cb2fd05
And relaunch Android Studio
On Windows it can be fixed by adding OS (or local user) environment variable with key "ANDROID_DAILY_OVERRIDE" and value "8d256f619ba96afd1273947e8b8bebea4cb2fd05" and restart Android Studio after that.
After migrating to Android Studio 3.x it's better to remove this anvironment variable back.
My solution in Ubuntu:
cd /etc
sudo gedit environment
add to end of 'environment' file: ANDROID_DAILY_OVERRIDE="your_value"
save and reboot
I seem to have some problems initialising the CloudBees SDK locally to be able to run a simple application.
I've downloaded the SDK, added the required paths; everything ok up to the point where I am trying to execute the bees run command from my newly created application folder.
The error I get seems related to the JDK installation on my computer - JAVA_HOME is pointing to C:\Program Files\Java\jre7 and not to jdk .
I've checked all the local PATHS and they seem ok.
By the way I am using Windows 8.0 Enterprise 64 bit.
Fully uninstalling Java from my system followed by installing only the 64bit version and recreating System paths seems to have fixed the problem.
I receive error
Exception (VBoxManage): java.io.IOException: Cannot run program "C:\Program Files\Genymobile/reg": CreateProcess error=2, The system cannot find the file specified
when I try to run genymotion eclipse plugin. What is wrong? I am using x64 windows 8.1
You will need to set the correct path to Genymotion installation directory on eclipse.
The default path on windows is C:\Program Files\Genymobile\Genymotion
Have a look at Genymotion eclipse plugin guide:
https://cloud.genymotion.com/page/doc/#collapse8
Change the folder name, run again the launcher in eclipse and select the real folder, in my case "C:\Program Files\Genymobile\Genymotion"
The problem is space in "C:\Program Files\Genymobile". I would try to use "C:\Progra~1\Genymobile/reg" path if it can be configured. Another option is to move to location w/o space in path.
I was getting same error.
I was getting the wrong folder, its not only .../Genymobile . Its is ...Genymobile/Genymotion
I had this problem because I didn't first download and install Genymotion. I just installed the plugin from the Eclipse installation window and expected it to work. Dumb me.
I was get the same error. The directory of genymotion is
C:\Program Files\Genymobile\Genymotion/reg
not C:\Program Files\Genymobile/reg.
You can copy all files from C:\Program Files\Genymobile\Genymotion\ to C:\Program Files\Genymobile
Then it works well.
It seems like this error is caused by invalid path to Genymotion, but actually it is caused by a bug that does not let Genymotion plugin work with VirtualBox later than 4.2
To fix this error all you need to do is go here:
https://www.virtualbox.org/wiki/Download_Old_Builds_4_2
and download the 4.2 version of VirtualBox for your OS. Once you reinstall it - the error is gone and Genymotion plugin opens device list properly
I am a web developer and new to Phonegap..
I was trying to install phone gap on my windows 7 machine as per described here
http://docs.phonegap.com/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface
but when i run the following command
cordova platform add android
i am getting the following error
[Error: An error occured during creation of android sub-project.
ERROR : executing command 'ant', make sure you have ant installed and added to y
our path.
]
does this mean that i should install apache ant on my machine ? if so can someone redirect me to right link.
I am also running wampserver on my machine for my other developments..
will installing 'ant' affect on my wamp ?
As described in PhoneGap Getting Started
Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable.
If you need ant for Windows, you may want to download and install it from here
You need ant to add the android platform.
Ant is a java-based build tool.
You can get further informations and download it at http://ant.apache.org.
ant has nothing to do with the apache webserver and doesn't effect your wamp installation. It's another software product provided by the apache foundation.
lg
fastrde