I own Delphi 10 Seattle and I am struggling to setup my IDE for Android development.
My phone is One Plus X.
I went through the docs at embarcadero website, in particular this page
I did all up to point (6), but point (7) is not ok: I do not see my device.
I tried to go through all the points several time, I also made sure to run explorer with elevated privileges to be sure that everything is installed fine. Anyway as I choose Android as target platform there is no way to see my phone in the "Target" folder.
Did anyone manage to use One Plus X (and its drivers) for Android Development on Delphi Seattle?
I used this driver as USB driver for one plus X, having no errors on installation
After retrying for the nth time i manager do see my phone.
Success come after following step by step this guide:
Start the Android SDK Manager by selecting Start | All Programs | Embarcadero RAD Studio | Android SDKs | Android Tools
Caution: Use only the Android SDK Manager that is available in the Android Tools node on the Start menu.
Do not use any other Android SDK Manager that might be installed elsewhere on your system.
A command window opens, and then the Android SDK Manager opens.
In the Android SDK Manager:
Scroll down to Extras.
Select the Google USB Driver.
Clear all other checkmarks, such as automatic checkmarks in the Android 4.3 and Tools sections.
Note: We recommend that you do not install additional libraries or updates except as distributed by RAD Studio.
Click Install 1 Package.
Power up your Android device and connect it by USB cable to your development system.
In the system Control Panel, search for and select "update device drivers" in order to open the Device Manager.
In the Device Manager, locate and right-click your Android device, and select Update Driver Software.
In the Update driver software dialog box, browse to the \extras folder in your Android SDK directory, and select the folder that matches your Android device. (For example, select google for the Nexus 7 or Nexus 10 tablet.) Then click OK.
Note: This is the location of the Google USB driver in our default Android SDK installation: C:\Users\Public\Documents\Embarcadero\Studio\18.0\CatalogRepository\AndroidSDK-<Version>\extras\google\usb_driver.
OnePlus added to the list:
Related
Until now I have only programmed for Windows, but I would like to try Android.
So, I installed Delphi 10.4 CE with all the options.
Then, I installed all the recommended stuff with SDK Manager.
Then, I connected my (Huawei) phone to my (Windows 10) laptop with USB, and found out how to activate the developer mode and remote debugging.
Then, I created a blank multi device application.
But still, Delphi refuses to even show the "Android" option! (I can only select "Windows 32 bit")
What am I missing? I'm getting desperate after so many hours of searching!
There is no Android option in the Delphi IDE:
Seems like your issue is that Android hasn't been added as a platform option within your project.
First, you'll need to make sure that you have the Android platform installed. You can do this by going to "Tools" and then "Manage Platforms..." from the main menu:
Once you have the Android Platform installed in your IDE, then within your project, you can add it as a platform option by right-clicking on the "Target Platforms" option in your Projects window, then selecting "Add Platform...":
Within that menu, you'll be able to select Android as an option as can be seen in the screenshot below:
Once you have Android added as a platform option, then you should see your phone under "Target":
If you're not sure where to find your Projects window, see below:
I pair my phone using the Pair using wifi option in Android Studio and it gets paired and even the app runs on my phone. But the next day when I come the device manager shows my phone offline inspite of switching on Wireless debugging on my android phone on.
So, inorder to run the app on my phone I have to remove my phone from the list of Physical device under the Device Manager tab and then pair my phone again and it works properly again.
But I wanted to know if there is a way to connect my phone to connect directly with Android Studio on any day without having to remove my device and pairing it again.
Close and then start Android Studio after making sure that your device has wireless debugging enabled and after making sure the PC has joined the same wifi network. On Windows, kill any "adb.exe" processes that persist after Android Studio has closed.
In the worst case, I've had success by doing all of the above and also reinstalling the platform tools in Android Studio. In my case, I had to:
Navigate to Tools / SDK Manager / SDK Tools (tab)
Uncheck "Android SDK Platform-Tools"
Click OK, see warnings about files in the platform-tools directory
Navigate in the filesystem to that platform-tools directory, delete it
Navigate to Tools / SDK Manager / SDK Tools (tab)
Uncheck "Android SDK Platform-Tools"
Click OK, hopefully see no warnings
After updates to Android Studio 3.6.1 studio does not see connected devices,
but in adb devices
the debugger also stopped working
also do not work:
adb kill-server
adb start-server
I tried using the emulator, but the debugger in it also does not work
Operating System: MacOS Mojave
Decision:
Studio changed the way to platform-tools
it used to be:
/Library/Android/sdk/platform-tools
after the update:
/Library/Android/sdk/platform-tools/platform-tools
I don’t know why this happened, but after I moved all the content from the nested platform-tools, everything worked
First try
To change what your application defaults to when you click run or debug in Android Studio, follow these steps:
go to Run
Click on Edit Configurations
Select the project
find the Target Device section under the General tab on the Android Application page.
That seems to be where you toggle what the project builds to. If you're importing a project it actually defaults to Emulator, not sure why. You can also select "Open Select Deployment Target Dialog" to list both connected as well as emulated devices.
Sec try
Go to device manager (just search it using Start) and look for any devices showing an error. Many androids will show as an unknown USB device and comes with exclamation mark. Select that device and try to update the drivers for it. for update part follow the link:universal adb
But before that, you have to update your sdk manager and make sure Google USB Driver package is installed.
When done, the driver files are downloaded into the \extras\google\usb_driver\ directory. Hints: Search "android_winusb.inf" under Windows Start and Open File Location to get the directory mentioned.
Open up your device manager, navigate to your android device, right click on it and select Update Driver Software then select Browse driver software. Follow the file location path previously to install Google USB Driver.
Third try
Some cables can not been used for developer mode or transfer file. A solution would be change your cable and don't waste time.
and be sure allow USB debug mode
fourth try
Drivers not installed: If the Android Physical device is not a Google/Nexus product than you have to download the OEM drivers of the particular model.
HAXM not installed properly : Hardware Accelerated Execution Manager must have not installed properly on your computer. Try reinstalling it directly from the options available in your SDK.
No proper Path : Sometimes though the files are available in the local system, The Android Studio is not guided with the accurate path name to reach the file.
...............
Before going to bellow steps make sure
Your "Google USB Driver" package is installed ("Tools" -> "SDK Manager" -> Check "Google USB Driver" -> "Apply" -> "Ok").
If you are trying to access with emulator then check "Intel x86 Emulator Accelarator(HAXM installer)" is instaled. ("Tools" -> "SDK Manager" -> Check "Intel x86 Emulator Accelarator(HAXM installer)"" -> "Apply" -> "Ok")
Go to Tools.
Then go to SDK Manager.
Open SDK tools.
Uncheck "Android SDK Platform-Tools" (On my case it was checked).
press apply then ok.
Again goto Tools.
Then goto SDK Manager.
Open SDK tools.
check "Android SDK Platform-Tools"
Restart Android Studio :)
Hope this will be useful to you.
I want to attach the Android device to Windows 8.1 trough USB
instead of using the built in emulator.
How can I do this?
Note : The device can be connected trough USB (USB drivers are installed),
and its in devaloper mode.
You first need to enable Developer Mode:
Android 4.2 and higher
Starting in Android 4.2 and higher, the Developer options is hidden by default. To make it available, go to Settings > About phone, and tap the Build number item seven times to reveal the Developer Options tab:
Xamarin's doc: Set Up Device for Development
Then you need USB drivers for your phone if you already do not have them installed, check Sony's support site.
Once your device is connected to your machine via the USB cable, debugging is just like debugging via an emulator.
Start debugging your application by pressing Cmd-Enter in Xamarin Studio on OS X or F5 in Visual Studio. When you do so, you may be prompted to choose the device to debug with.
Xamarin's doc: Debug on Device
Check that your device is showing up for Android's adb:
1) Find where Visual Studio/Xamarin (or you) installed the Android SDK:
(Click 'Tools' in the toolbar at the top, then click 'Options')
2) Copy the the path for Android SDK Location
3) Paste that into your shell (cmd or powershell) proceeded by cd (we need to change to that directory.
4) CD into the platform-tools subdirectory
5) Run adb devices
This should display something like:
List of devices attached
XXX12345 device
If all that is returned:
List of devices attached
Then the device is not been recognized and will not be available for Xamarin (or any of the Google Android tools) to deploy.
Note: Also check to ensure that your phone is in Mass Storage mode, as some default to MTP mode and that will not work as an adb device
Note: If it’s NOT appearing in the list make sure that drivers are properly installed and you’ve enabled “USB Debugging" on the phone
You need to enable USB debugging in Developer Options in your phone, plug your phone and it should be detected by Visual Studio.
You may also need to download and install USB Drivers from Sony Drivers page
I've been searching all evening, and I can't find a way to have IntelliJ deploy my android application to my device via USB debugging. I can't see any options to specify the target other than a virtual device.
I have device drivers installed, and all updates available to IntelliJ X and the SDK.
Is it even possible? Or only for eclipse?
Yes it is possible - just specify in the Run/Debug configuration no virtual device to use and IJ will prompt you where to run the app. If the devices is connected, it will be listed and you can just select it.
This works very well here on OS X.
On windows you may need to install the driver.
Download through the SDK manager Extras-> Google USB driver.
Then go to your SDK\Extras\Google\USB_driver\ folder,
right-click on android_winusb.inf and choose Install.