[Q] minSdk(API 8) > deviceSdk(API 1) - Android Studio

Hello,
Trying to get Nexus 7 (2013) Lollipop to operate with Android Studio v1.0.2 on a Windows 7 platform.
minSdkVersion 8
targetSdkVersion 21
When Run/Choose Device is displayed, and a real device is selected, I get the following error:
Error: minSdk(API 8) > deviceAdk(API 1)
These are my settings for the SDK/Extras:
I cannot locate any setting for the deviceSdk level, so I have concentrated on the ADB driver itself and currently have the latest_usb_driver_windows.zip - Google 32/64 ADB Driver - "Android Composite ADB Interface" installed. This driver is dated 8/28/2014.
A previous driver http://www.koushikdutta.com/post/universal-adb-driver
from ClockworkMod had been installed with the same results. ClockworkMod, Android Device, "Google Nexus ADB Interface"
Several system restarts have been done after ADB drivers have been changed.
Can someone please direct me to the answer for the deviceSdk API level error?
Thank-you.

It appears to be FIXED! I confirmed the functionality only yesterday.
Not sure exactly what the issue was, but I noticed that jre1.8.0_31 kept wanting to load an update. Apparently the JDK/JRE pairing was in error.
Removed JDK/JRE7; reinstalled JDK/JRE8 for Win64.
Environment Variables
ANDROID_SDK_ROOT
C:\Users\<name>\AppData\Local\Android\sdk
JAVA_HOME
C:\Program Files\Java\jdk1.8.0_25
With this configuration I can now use an AVD and can use the Debug facilities (Breakpoint, Step, StepOver).
caprock said:
Hello,
Trying to get Nexus 7 (2013) Lollipop to operate with Android Studio v1.0.2 on a Windows 7 platform.
minSdkVersion 8
targetSdkVersion 21
When Run/Choose Device is displayed, and a real device is selected, I get the following error:
Error: minSdk(API 8) > deviceAdk(API 1)
These are my settings for the SDK/Extras:
I cannot locate any setting for the deviceSdk level, so I have concentrated on the ADB driver itself and currently have the latest_usb_driver_windows.zip - Google 32/64 ADB Driver - "Android Composite ADB Interface" installed. This driver is dated 8/28/2014.
A previous driver http://www.koushikdutta.com/post/universal-adb-driver
from ClockworkMod had been installed with the same results. ClockworkMod, Android Device, "Google Nexus ADB Interface"
Several system restarts have been done after ADB drivers have been changed.
Can someone please direct me to the answer for the deviceSdk API level error?
Thank-you.
Click to expand...
Click to collapse

Related

ADB Drivers

Hey everyone,
I have been happily using android on nand for quite sometime, and everything has been going well. However, I must have the wrong adb driver installed on my windows 7 computer and can't seem to remove it fully or install the proper one ever. Every time I remove it from device manager, and plug it back in, windows finds it as an HTC composite device, and adb through command line can't find any devices, ever! I would really like to be able to use this feature for things like tethering and what not.
Also, if anyone has any information on how to tether using any OS, windows, mac or linux, I would greatly appreciate it, along with any applications that might be helpful! I have done proxoid in the past and it worked well, pdaNet looks like it might work, but again I don't have a connection to my windows computer!
Thanks in advance for all of the help!
I am using the android SDK usb driver for ADB, you just have to edit a file and add the vendor ID. I can do things like adb logcat, adb shell gives me odd characters in directory listings,I get a ? from adb devices, not sure what that is about.
C:\Documents and Settings\Administrator\.android\adb_usb.ini
Code:
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
0x0e79
0x0bb4
The 0e79 is for my Archos tablet, works fine there. 0bb4 is what showed up in device manager when I plugged in the phone.
I tried to install that driver for my Polaris and it doesn't work.
It shows "Installing Android Phone" while I have my device plugged in. It takes forever and seems that the USB connection hangs the driver install process, but as soon as I disconnect my device, Windows shows me an error message.
Instructions for Vista\Windows 7
For WinVista/Win7
These OS will install Android as a mass storage device. You must uninstall the driver and update to the android driver model.
Instructions:
1) Unplug all removable devices(thumb drive, sdcards, etc) beside the Android phone.
2) Locate "Device Manager", usually under "control panel"
3) Select "Universal Serial Bus Controllers"
4) Select USB Mass Storage Device.
Note: to check if you have the correct device, click on the details tab and select "compatible ids" under properties. There should be three items listed under value.
5) Select uninstall driver
6) Close the window. Now in device manager a new "Android Phone USB device" with a yellow! will appear... If not, Unplug your android device or select Action -> Scan.
Note: view optional steps below if you still have problem with the your windows automatically installing drivers.
7) Click on the "Android Phone USB device"
8) Select "browse my computer to driver software"
9) Under "search this location for driver", Browse for the location that you have unzip the android_usb_windows and select the corresponding folder for your system(AMD64 for 64bit systems or x86 for 32bit systems. Right click -> properties on "My Computer" to check which system you have)
The driver is now installed and is ready to use.r
***Optional.
1. Go to System under Control Pandel.
2. Click on Hardware Tab and Under "Device Installation" select “Never search windows update for drivers”, then OK.
3. Go to Enable debugging on your phone. (Settings->Applications->Development->USB debugging).
4. Run USBDeview and remove all instances of Android Phone
5. Unplug your phone, and plug it in again.
7. Continue on step 7) above.
To turn off search windows update in windows 7, use this link below
http://www.addictivetips.com/windows-tips/disable-windows-update-device-driver-search-prompt/
To turn off automatic driver installation in windows 7, use the link below
http://www.addictivetips.com/window...tomatic-driver-installation-in-windows-vista/
Unfortunately, it doesn't work for my Polaris. The whole driver installation process hangs while my device is connected. As soon as i disconnect it, it continues, but it then complaints about it being disconnected.
SuperJMN said:
Unfortunately, it doesn't work for my Polaris. The whole driver installation process hangs while my device is connected. As soon as i disconnect it, it continues, but it then complaints about it being disconnected.
Click to expand...
Click to collapse
mine hung as well, what i ended up doing was turnng off the automatic installation. Then uninstalled the adb interface driver that was already installed. Then turning back on automatic installation. Then plugging phone back in and as it was installing automatically, manually installing the adb interface driver at the same time. Eventally the automatic install would error out and the manual install would work. It took like 15 or 20 minutes for it to finish.
when i uninstalled the adb interface, it turned into ''android phone'' in device manager. That was the driver i manually installed while the phone was automatically installing. I know it dont make much sense but it worked for me.
It looks like that will be my fate as well. It also says, that when I do the manual install of the ADB drivers that I already have the most current version installed!!! OH well, keep trying!
Same behavior on my pc with windows 7 32-bits.
When I have lucky the adb driver is connected (working correctly) for a few minutes and then it's disconnected.
i've tried various things to install adb driver, since last night but i've got nothing. i can't install adb driver for my xperia arc.
i installed sdk manager and usb driver. but when i try to install or update driver, i always see this message like "you're using the latest version". So i can't install it.
and also i've tried to uninstall driver and unplugged / plugged my device. then w7 automatically install driver. so i can't install adb driver again.
i want to root my phone, using this way at this link http://forum.xda-developers.com/showthread.php?p=18805560#post18805560
so i must install adb driver, please help me.
thanks everybody
edit: i've windows 7 home premium, 64-bits

ADB Testing interface Error code 52 in device manager

In device manager I get an error code 52 on my "Android platform sooner single ADB interface"
I've tried removing it, rebooting both phone and pc. I've also tried removing it using USBDView
In Device Manager just double click on "Android platform sooner single ADB interface" and then update drivers and choose following folder manually:
"C:\Program Files (x86)\LG Electronics\LG United Mobile Driver"
This worked for me.
Thanks, that worked

/dev/kvm uis not found

Hello,
I'm new to android programming and I just tried to emulate my "hello world" application.
On top of the "your virtual devices" windows there is a message "/dev/kvm uis not found".
I already looked into this error on google :
- VT-x is on in my bios
- Haxm is installed (in the SDK manager it is marked as installed with version 6.0.3)
- I also enabled DEP in windows and in my bios
Why do I still get this error?
I'm trying this on a windows 7 system with administrator privileges.
Hopefully someone can help me...
edit : It seems that haxm is not installed correctly, if I perform this command "sc query intelhaxm" I get an error that the service is not installed.
if I try to install haxm manually I get the following error "failed to configure driver : unknown error : failed to open driver."
stevennoppe said:
Hello,
I'm new to android programming and I just tried to emulate my "hello world" application.
On top of the "your virtual devices" windows there is a message "/dev/kvm uis not found".
I already looked into this error on google :
- VT-x is on in my bios
- Haxm is installed (in the SDK manager it is marked as installed with version 6.0.3)
- I also enabled DEP in windows and in my bios
Why do I still get this error?
I'm trying this on a windows 7 system with administrator privileges.
Hopefully someone can help me...
edit : It seems that haxm is not installed correctly, if I perform this command "sc query intelhaxm" I get an error that the service is not installed.
if I try to install haxm manually I get the following error "failed to configure driver : unknown error : failed to open driver."
Click to expand...
Click to collapse
Uninstall kvm and install it manually through sdk standalone manager.
Sent from my One using XDA Premium 4 mobile app
where is KVM installer
fadival said:
Uninstall kvm and install it manually through sdk standalone manager.
Sent from my One using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Can you give me a little bit more explanation?
I can not find the KVM (un-)installer.
Also in the SDK manager I can't seem to find it.
btw, I thought KVM was haxm?

Driver installation problem.

My OnePlus 3T, in recovery is installing as " LeMobile Android Devices, Android ADB Recovery Interface"
i am not able to install in sideload mode, can anyone help?
For Windows:
A few steps to get rid of the LeMobile pesky driver (or another driver for PnP devices).
1. Have the device manager opened "devmgmt.msc". Make sure the LeMobile is visible in the device tree by connecting your phone or tablet.
2. Open the Command Prompt with Admin privilege. type "pnputil /enum-drivers" This should generate a list, lookup the "Published Name" value of the LeMobile driver, should be something like "oem??.inf" Remember this name.
3. Use the following command in the Command Prompt with Admin rights: "pnputil /delete-driver oem??.inf /force" Of course oem??.inf should be the name you found in step 2.
4. Go to the device manager. Do not refresh of rescan! Right-click on the LeMobile device still shown in the device manager and select "Update Driver Software". Now you can browse to your preferred driver
5. And You're done!
nAFutro said:
For Windows:
A few steps to get rid of the LeMobile pesky driver (or another driver for PnP devices).
1. Have the device manager opened "devmgmt.msc". Make sure the LeMobile is visible in the device tree by connecting your phone or tablet.
2. Open the Command Prompt with Admin privilege. type "pnputil /enum-drivers" This should generate a list, lookup the "Published Name" value of the LeMobile driver, should be something like "oem??.inf" Remember this name.
3. Use the following command in the Command Prompt with Admin rights: "pnputil /delete-driver oem??.inf /force" Of course oem??.inf should be the name you found in step 2.
4. Go to the device manager. Do not refresh of rescan! Right-click on the LeMobile device still shown in the device manager and select "Update Driver Software". Now you can browse to your preferred driver
5. And You're done!
Click to expand...
Click to collapse
trying to install driver from oneplus driver folder, it is giving me that the driver is not for windows 10 64bit
tekken1972 said:
trying to install driver from oneplus driver folder, it is giving me that the driver is not for windows 10 64bit
Click to expand...
Click to collapse
Have a look at https://forum.xda-developers.com/oneplus-3t/development/toolkit-oneplus-3t-toolkit-unlock-t3507729
The toolkit has the drivers. OnePlus is being weird with drivers. I've read from another user that OnePlus is using the driver download internally but it is not yet published.
nAFutro said:
Have a look at https://forum.xda-developers.com/oneplus-3t/development/toolkit-oneplus-3t-toolkit-unlock-t3507729
The toolkit has the drivers. OnePlus is being weird with drivers. I've read from another user that OnePlus is using the driver download internally but it is not yet published.
Click to expand...
Click to collapse
Did all the above still could not install the drivers.
Problem solved by latest windows 10 64bit update
Google, Inc. - Other hardware - Android Bootloader Interface

[SOLVED] Please Help! Can't get fastboot to recognize device, but adb does

Former-Prime R1 HD 16GB
Windows v8.1
TL;DR:
I am unable to get my phone to be recognized in fastboot by the fastboot utility, yet it is recognized by adb. I've tried a couple of different sources for drivers, both signed and unsigned. Each time I've installed drivers I've gone into Device Manager and removed previous disconnected device instances along with the drivers (checked remove driver box). Besides the fact that adb sees the phone fine with the cable I'm using, it's the same cable I have successfully used with my Samsung and Nexus devices. I'm at my wit's end. :crying: I could really use some help.
Full version:
I've followed the instructions from this thread to flash my phone into an OEM non-Prime device:
https://forum.xda-developers.com/r1-hd/how-to/guide-convert-to-prime-rollback-ota-t3432499
It's now running V12. I want to verify the state of the bootloader and jump through the hoops to safely put V17 on it (without whacking the preloader, etc.). My problem is that when I try fastboot devices no devices are listed. However, adb devices shows the phone.
I installed ADB and fastboot v1.4.3 using the package from this thread:
https://forum.xda-developers.com/showthread.php?t=2588979
I've tried a couple of different sources for drivers, both signed and unsigned. Each time I've installed drivers I've gone into Device Manager and removed previous disconnected device instances along with the drivers (checked remove driver box). I've got tzul's signed drivers installed which were obtained from this post using the enclosed instructions (both those in the "Android" and "CDC" folders):
https://forum.xda-developers.com/showpost.php?p=67927242&postcount=23
I also have the Android SDK's Platform Tools and Google USB driver installed and tried the adb and fastboot from there with the same results.
When booted to the Android OS, the phone shows up as Android Composite ADB Interface in Device Manager. When I use adb to try and reboot the phone into fastboot via adb reboot fastboot it merely reboots into the OS. To get into fastboot mode I have to do it via the bootloader (power+vol. up). When attatched in fastboot mode the phone shows up in device manager under "Other devices" as "Android" with The Yellow Triangle of Doom, and says drivers for the device aren't installed (Code 28). From what I've read, the drivers it's looking for are the in the "Android" folder of the drivers .zip I downloaded, which I have installed per the instructions.
Can someone please help me figure out what I've done incorrectly?
Fixed
As I had surmised, it was a driver issue. One of the driver bundles I had downloaded from androidmtk.com or another site foobar'd me. But before I had this straightened out, I gave up and used a Linux Mint virtual machine to verify my bootloader status, etc.
The way my drivers got straightened out was that I coincidentally ran Windows Update as I had updates available for which enough time had passed without reports of problems. Update offered me the following updates:
Important
Windows 8.1 Drivers
Microsoft - Other hardware - MTP Device
TP-LINK - Other hardware - Android Bootloader Interface
Windows 8.1 and later drivers
Samsung - Other hardware - Samsung Mobile MTP Device
Optional
Windows 8.1 Drivers
MediaTek - Other hardware - Android Composite ADB Interface
After installing these I again tried to use fastboot from my Windows box and it worked fine. So, one of the driver packs I installed screwed up my MTP drivers evidently (both the updates offered were from early last year). The TP-LINK driver was the VCOM I needed for fastboot to work.
So, all's well that ends swell.
Amazon Prime running on V.6.1
Windows 7 x64
I am having similar issues but I don't fully understand how the OP solved this problem. I believe I am connecting properly with ADB but no response from fastboot. Here is what I have done so far:
1) Installed the "15 Sec ADB Tool". Drivers seem to be working but could not located the ADB folder the tool was supposed to create. I suspect drivers were installed correctly because under Device Manager I have "Android Phone > Android Composite ADB Interface"
2) Directly downloaded latest SDK Platform Tools, which includes adb.exe & fastboot.exe, among other files. Tried testing the tools with the following results:
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>adb devices
List of devices attached
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
5DFYRKKFQWBEQ4LJ unauthorized
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>fastboot devices
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>
Phone is turned on while doing the commands above. Could someone shed some light? Is the ADB response adequate? And should I get a fastboot response as well? If so, what could be the problem?
Lastly, phone has UBS Debug mode enabled.
Thanks in advance!
OldSkewler said:
Amazon Prime running on V.6.1
Windows 7 x64
I am having similar issues but I don't fully understand how the OP solved this problem. I believe I am connecting properly with ADB but no response from fastboot. Here is what I have done so far:
1) Installed the "15 Sec ADB Tool". Drivers seem to be working but could not located the ADB folder the tool was supposed to create. I suspect drivers were installed correctly because under Device Manager I have "Android Phone > Android Composite ADB Interface"
2) Directly downloaded latest SDK Platform Tools, which includes adb.exe & fastboot.exe, among other files. Tried testing the tools with the following results:
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>adb devices
List of devices attached
* daemon not running. starting it now at tcp:5037 *
* daemon started successfully *
5DFYRKKFQWBEQ4LJ unauthorized
Click to expand...
Click to collapse
This shows adb is on , on your phone but you did not allow the connection. =. When you first connect pc to phone with usb cable and adb enabled , you should get a pop up window on the phone. You may need to wake the screen and unlock to see it. The window asks you to authorize the connection
OldSkewler said:
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>fastboot devices
Click to expand...
Click to collapse
You also missed a step here. You needed to reboot phone to bootloader /fastboot mode before asking to list fastboot devices.
So before that line you should have done "adb reboot bootloader"
OldSkewler said:
C:\Users\Phantom\Dropbox\Personal\IT\Android\SDK Platform Tools\platform-tools>
Phone is turned on while doing the commands above. Could someone shed some light? Is the ADB response adequate? And should I get a fastboot response as well? If so, what could be the problem?
Lastly, phone has UBS Debug mode enabled.
Thanks in advance!
Click to expand...
Click to collapse
mrmazak, you are absolutely right on both items. I wish I had come across something explaining this earlier... spent a lot of time sorting this out!
Hopefully this will help someone in the future!

Categories

Resources