I'm trying to add a new device using AVD Manager (not Android Virtual Device but in Device Definitions tab). I just installed a brand new version of the Eclipse (Luna) and the Android SDK (r23.0.2) under Windows 7 64 bit OS.
I then open the AVD Manager strait from the SDK folder and choose the Device Definitions tab.
In that tab I press the 'Create Device...' button, fill every field needed in the dialog that opened. The button 'Create Device' in that dialog is becoming enabled and I press it...
Nothing happens. The dialog is not closing and the device is not added to the list.
I saw very similar questions regarding creating a virtual device and tried to apply the suggestions made there but with no success. Added the path to java and SDK tools and platform tools in the PATH environment variable, choose a name with no spaces.. nothing helps.
Any help would be very appreciated.
Thanks.
Just found out that there is an open bug report on this exact issue:
Issue 73648 - Create new device definition broke
There's a workaround. Hope it will be fixed soon
Please check this path:
C:\Users\"your PC name".android\avd
Have you and file in this folder?
I had (or have) the same problem-'Create Device' does nowt. As a simpler workaround you can use the 'clone...' option which brings up the same dialog
Yes, select any device from the available and click on clone , and change the parameters.
New Device will be added successfully.
Related
He thanks in advance,
In react native am not able to right click or open dev mode in emulator.
adb shell input keyevent 82
Use this in your windows command line, It works for me.
If the above solutions did not help, here is what worked for me.
Use an emulator that has Play Store installed. When creating a virtual device in Android Studio, it will have the Play Store icon.
Download Expo from the play store. For some reason, the Expo app that vscode pushes to my emulator won't work properly for me.
Run expo start and open the Expo Developer Tools page on your browser (by typing 'd' if it does not open automatically), and copy the url at the bottom left. Will look like exp://127.0.0.1:19000 if you started with --localhost
On the emulator, run the expo app and on the top select Open from Clipboard and it will show the url you copied.
For me, this did a better job at starting the Building Javascript bundle, and once the app was loaded, I was able to use Ctrl M to mimic shaking the device and open the developer menu!
Other troubleshooting tips I learned while figuring this out:
Like the comments above state, don't be in production mode
Make sure to have paths set up correctly to be able to reach your Android sdk, nodejs, and your local project node_modules/bin if you are not doing global npm installs.
If you are having issues with remote debugging, make sure the Chrome debugger is not open. Close it if it is open, have your debugger listening on the correct port (for me 19001) and reload the project on the device.
I hope this helps someone.
FOR WINDOWS 10 YOU NEED TO ADD THIS SO THAT YOU CAN USE CRTL+M to open debug and reload
Add environment variables
Open a File Explorer, copy and paste the following into the address bar.
Control Panel\System and Security\System
Click on Advanced system settings on the left menu.
Click on Environmental Variables at the bottom.
Click on New to add a user variable (the top section).
You’ll be adding two:
Variable Value
ANDROID_HOME C:\Users\username\AppData\Local\Android\Sdk
JAVA_HOME C:\Program Files\Android\Android Studio\jre\jre
Then under System variables (the bottom section), click on the Path variable and click on Edit.
On the pop-up window, click on New to add another variable:
C:\Users\username\AppData\Local\Android\Sdk\platform-tools
C:\Program Files\nodejs\
Click OK, OK
Then try your emulator
see this link: https://medium.com/#lpault29/react-native-environment-for-windows-e25806df867c
Turning off production mode solved my problem.
There is post which says turn off production mode -> it took me time to find in which settings -> I was looking in emulator settings, it was in expo-cli. This post is it clarify it.
Production mode off
In the expo-cli http://localhost:19002/, there is Production Mode (left side bar) -> turn it off
Open AVD Emulator and your application, press ctrl+M
It should work.
*Make sure we installed all of these SDK files,I tried all of the above solutions but no one solved my problem but everything is working now after doing this, hope it will solve your problem also
I already installed the android studio but i am having a problem to proceed ahead,
and the problem is Android SDK path not specified, what does it mean, do i need to download something or what?Android SDK is having problem
Go through the following steps but first make sure your PC is connected to the internet.
Open your Android Studio
Go to the File menu and choose Settings
After that from the left side of Settings window search Android SDK, click on it and on right side click Edit.
Then from SDK Setup Window Click Next and Another window will be opened click Next.
Finally, the installation starts and Android Studio download the SDK and necessary files.
Yes, you need to download the Android SDK. Then you need to add the location on your computer to Android Studio.
The SDK can be downloaded by opening a workspace in Android Studio, and finding a button with an arrow pointing down. If you hover over it, it should say "Open SDK manager". Press it and download the packages you need.
Yes, Before installation it will ask you options.Just tick mark Android SDK.
See below:
Refer link: https://developer.android.com/studio/install
The installer is misleading making you think the SDK is already there. After much searching I figured this out:
Cancel the dialogue box asking for the Android SDK path and do the following:
Open Android Studio IDE. Find the down arrow icon, should be second last icon in the toolbar. Click that. You will see a path for Android SDK Location:. Click the edit link to the right of that. This will bring up the SDK Components Screen. If you can check the boxes there, check them. They may already be checked or they may be disabled. You can leave the path as is, for me its:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it may say it has detected a previous version and it will only download the components it needs. This is normal. Now click the NEXT button. A confirmation screen will come up with Setup Type and SDK Folder. If you want to change your SDK Folder this is your last chance, if not, click NEXT again.
It may bring up a Terms & Conditions screen, click the Accept radio button then NEXT. It will go and download the Android base SDK. When it's completed click FINISH.
You will then be taken to the Platforms screen where you can select which Android platforms you want to support. ie, Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need then click APPLY.
The downloader will grab all those packages for you. Next, click the SDK Tools tab. Check the boxes of the tools you want and click APPLY. It may bring up a Terms & Conditions screen again, click the Accept radio button then NEXT. When completed just click FINISH and you're good to go.
File > Settings
The download will begin
In some cases, the project works properly but suddenly this error appears even though the project has nothing to do with Android
If this is your case, try the following steps:
Find a file in your project called tests.iml (or File ending in .iml)
file location in default is C:\yourProject\tests\tests.iml
Revert to the last version for all page by the click on the git change icon (1) and click on the revert button (2)
As the following image:
Run project
I have installed the eclipse for android developers, when I launch it, it says that it is neon 3. I have installed the android 6 and the deafult packages from the SDK manager. When I try to create a new phone application file (acording to yourtube tutorials) it just simply doesn't show up. There are some phone related things in there, look at the screenshot.
Things that I have aleready tried:
-waiting
-restarting my PC
(I will edit this when I get an answer and it doesn't work)
My PC specifics:
-Windows 10 64-bit
(request some more specifications in the comments if you need any)
Also some of my built in tutorials don't work (I will put a link to that question after I post it)
When I try to create a new phone application file
That was never a menu option, AFAIK.
Android Activity is clearly visible, though.
Or new Project, and select Android Application from there
Hi I know this is a real silly question but I am following the instructions to create an app for android. Im currently here... http://developer.android.com/training/basics/firstapp/running-app.html
Ive already set up my first app as per instuctions, Ive enabled debugging on my phone, but now Im unsure what file to open in eclipse before clicking "Run as"-> "Android Application".
Any help would be great thanks
You don't need to open or close any file(s) for running the app, just make sure the project you want to run is selected in the project explorer on the left side. But I assume that you only have one project at this time so everything should work as expected
EDIT
If you want to test your app on a real device from Eclipse, make sure the required device drivers are installed. You can go to Run -> Run Configurations -> target and check if your device is listed. In case that is not, some drivers are missing.
Select your MainActivity and click run. It will prompt a box where you can choose weather you want to run in device or in emulator.
To run in real device See my post. It will help you.
I'm new to Android development and I'm currently going through some tutorials. When I setup a new Android Project in Eclipse, and select Windows -> Android SDK and AVD Manager, in Virtual Devices, the list of existing Android Virtual Devices is empty. Is it supposed to be?
From the pictures in the tutorial, it's pre-populated. Can I download these AVDs from somewhere, am I missing something here? Also, I'm developing this on my Macbook Pro.
Is it supposed to be?
Yes.
From the pictures in the tutorial,
it's pre-populated.
The second step of the Hello, World tutorial has you create an AVD.
Can I download these AVDs from
somewhere, am I missing something
here?
No, you create them on your machine using the SDK.
You need to create them. Simply click on the New button on the right of that screen. See this documentation for details.
Strangely enough - there's no way to import it.
There's a good walk-through including the configurations for popular devices here:
http://mobile.tutsplus.com/tutorials/android/common-android-virtual-device-configurations/