The Visual Studio Community 2015 was installed many days ago, and today you want to try Apache Cordova and use it to develop cross-platform apps. Before this need to configure n many things, here is found an MS official article: Configure Visual Studio Tools for Apache Cordova. Watch this piece of paper start installing, Nodejs, Chrome, Git, Apache Ant, Oracle Java, Android SDK, and then configure environment variables. Finally, we can use the VS-own detection tool to detect if the dependent environment is properly installed and viewing environment variable settings, such as:
This kind of test results let me very depressed, oneself obviously installed node. js! And it's 32-bit. Is installed the latest version of (v5.7), no language Ah! There is the Android package, do not understand exactly what he said, anyway, has been installed a lot, such as:
If you still need to install Android SDK related other things can go here to download: androiddevtools, I downloaded here. I ignored a few of the problems detected, then I created an Apache Cordova blank project, then the excitement of debugging. Take the data cable, link to the phone (of course don't forget to open "developer Mode"), then check "Device", click Debug ... The tragic thing happened, the deployment program failed! Cause: Unable to start Adb.exe. I was blindfolded! In Android native development This kind of problem often, say is 5037 port by other program occupy, I tried a bit: Netstat-ano|findstr 5037 did not find Ah! Then I try to enter the ADB start-server can start success Ah, such as:
Do not know how to do, is really the above detection of the problem, this problem made me very depressed! Finally found that ADB can also detect connected to the Android device, I tried: adb devices really did not find the device. This is what happened, the computer can find the phone's body storage and SD card AH! Later, I came to my oldest Android phone-Samsung i559 tried, no problem, found, such as:
Hey! Look at others, so old mobile phone can be, is a bit old system (2.3), memory is a bit small (256MB) ... My charm Blue note2 can not, in fact, I found an indirect solution, is the computer and mobile phones are installed 360 mobile phone assistant (my classmate said Pea pod can also), after installation can be, but also deployed successfully, but after unloading is not. Finally I asked the classmate of my Android development, he said should be the driver of the problem, these two drivers (? Android Drive and? Storage driver) should be two different things, and gave me an article: adb devices can't find the device what to do when I see the words "Adb_usb.ini" when I saw a light, because I saw it. In fact, this experience is very clear that the key is to find the "hardware ID", according to his statement to find "adb Interface", double-click into the "ADB Interface Properties", then select "Details", and finally in the Property dropdown box, select "Hardware ID", My charm blue note2 is 2a45, such as:
Different computer "adb Interface" should be in different places, my (WIN10) and Baidu experience is not a place, but the purpose is only one, is "adb Interface", finally according to experience in the specified path to create or modify Adb_ Usb.ini file because my computer does not have this file, so just create one directly and then enter "0x2a45" to save. Re-testing will be no problem, such as:
And that's the Adb_usb.ini of the file. Blue Note2 when connected to a computer, there is an option such as "built-in discs" such as:
After selecting him, "My Computer" is like this, more than a "CD drive":
After opening, there is an introduction to "Adb_usb.ini" in the "I:\USB Reference manual\ simplified \adb_ reference manual. txt":
Second, the Windows XP Chinese environment
1. Create or modify C:\Documents and settings\< your user name >\.android\adb_usb.ini file, add a line of text to the file, and the content is 0x2a45.
2. Check if the ADB device is found (in the command line program)
ADB kill-server
ADB devices
Third, the Windows 7 Chinese environment
1. Create or modify C: \ user \< Your user name >\.android\adb_usb.ini file, add a line of text to the file, the content is 0x2a45.
2. Check if the ADB device is found (in the command line program)
ADB kill-server
ADB devices
Hey! In fact, have noticed him, is not attached, so here special mention, finally attached a successful installation to end this article.
Apache Cordova Development Android App--