Error when trying to Create New Emulator
Posted Date Unknown Doug Knudson 10 Comments

Hi,

I have installed, removed and reinstalled and reconfigured a couple of times but must still have pathing wrong somewhere.  When I choose Create New Emulator from AndroidStudio menu, I get a DOS box with:

Invalid number of parameters

The system cannot find the path specified.

Can you tell me what I might have configured incorrectly?

Thanks,

Doug


See All Responses Below...
Author
Message Rating
Posted on: 02/10/2012
If all other menus are working , then it has something to do with your environment settings. What Operating system and the Language you use?. Do you have administrative rights?

Tom

Posted on: 03/10/2012
Also, Can you confirm that the SDK path correct, also, there may be some problem if the path contains white space (for example: "D:Android Folderandroid sdk" )... So, please remove the space in folder name (like "D:Android-Folderandroid-sdk"). Then try again after restarting Visual Studio.
Share this page across other social networking sites



Posted on: 03/10/2012

Hi All,

Sorry about not providing enough info on my original post.  The environment is XP SP3 running VS2010.  Per recommendation from Ajith.Joseph, I moved my android-sdk to a location without spaces in the path, deleted my test project in VS and rebooted.  I then tried to create a new Android  project in VS.  I gave it a name, accespted the default Build Target Version of Android-16 and got the error, 'Failed to create new android project. Reason: The system cannot file the file specified.  What file might that be? :-)

Here are my Env variables and pertinent part of my path:

ANT_HOME - C:Program Filesapache-ant-1.8.4

JAVA_HOME - C:Program FilesJavajdk1.7.0_07

PATH - C:Program FilesJavajdk1.7.0_07in;C:Program Filesapache-ant-1.8.4in;C:Androidandroid-sdk;C:Androidandroid-sdk ools

The folders pointed to by the path and variables all exist at the specified location.  Do I need to worry about spaces in the path for ANT_HOME and JAVA_HOME?  What can I try next? 

Sorry to be so clueless and thanks in advance for all the help,

Doug

 

Posted on: 03/10/2012
We had tested here only on Windows 7 Machines, Not in Windows XP. Can you try in Windows 7?

Tom

Share this page across other social networking sites



Posted on: 03/10/2012

Our primary development environment is XP but I will find a Windows 7 machine and get VS2010 installed and give it a try.  In the meantime, can you tell me what is executed when I choose New Android Project from the VS menu?  Does this run an exe or a bat file for the Add-In? The error ('Failed to create new android project. Reason: The system cannot file the file specified.) seems more like a pathing problem than OS issue but will try Windows 7.

Thanks,

Doug

Posted on: 03/10/2012
Is it possible for you to debug the code in your machine. It will be of great help to all the AndroidStudio Comminity..

You can get the AndroidStudio source code from the link below..

http://code.google.com/p/tektips-androidstudio/

Tom
Share this page across other social networking sites



Posted on: 03/10/2012

Tom,

I will get the source and see if I can set up to debug it on the XP environment. I am much more comfortable in VS6 than VS2010 but will give it a try.   I am also currently installing VS2010 on a Windows 7 machine and will keep you apprised of my progress on both fronts.

Thanks,

Doug

Posted on: 03/10/2012
The addin was developed using Visual Studio 2008 . So it will be better if you try to compile and debug it using the same Visual studio version..

Tom
Share this page across other social networking sites



Posted on: 04/10/2012

Tom,

I surrender!  I built a new machine running Windows 7 and installed VS2010 and installed the JDK, Ant, the Android SDK and finally your Add-In.  Set the two environment variables and altered my path per your instructions.  All this I did exactly as I did on my machine (XP SP3).  I am unable to make the Add-In work on Windows 7 either but interestingly, I get a whole new set of errors and symptoms, which even includes an occasional, seemingly random crash of VS2010!  I have the better part of 3 days invested in this and unfortunately, I must move on.  I may look at AndroidStudio again at some point in the future but for now, I must conclude that it is just 'not ready for prime time'.

Doug

Posted on: 04/10/2012
surely you are doing something fundamentally wrong which we didnt take care here neither in our testing nor in our code. Since this is an Open Source Project, we believe somebody will find time to fix this so as to make this a great product. We will also look into this project based on users input when we get time...

Tom
 
Share this page across other social networking sites



Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud