android studio not working well not displaying packages - android-studio

hey guys im not new to java but this android studio thing, im definitely not used to it,
so i just want to know what packages/tools i need to download from the sdk manager to get me started (im currently dev' apps to be run on api 2.3 gingerbread devices )
From the sdk manager this is what i did,
i downloaded and installed all the latest android sdk build tools,sdk platiform for 4.4 and 5.0
then i also downloaded the whole 2.3 api 10 since its what i was developing for....
after that when i start android studio,just right in the work space where you see the 'package' menu
i get nothing displaying,i mean even all the api i installed i still get nothing.
anybody who been using this tool can gimme help.thx
kind regards C.B!

When you open SDK manager, right click on the .exe and select
"Run As Administrator".
Don't open it from within android studio, find the exe file on your machine. Worked for me when I ran into that problem.
EDIT: You may need to download the sdk separately form here: https://developer.android.com/sdk/index.html?hl=i
Click VIEW ALL DOWNLOADS and pick the appropriate 'sdk only' download for your machine.

Related

Android Studio 4.0 doesn't recognize any previous virtual devices

First post--be gentle. Can't find any posts on Android Studio 4.0, so I hope this isn't a repeat. I updated Android Studio from 3.6.3 to 4.0 on Windows 10 (1909). Had created a couple of virtual devices in 3.6.3 (a Pixel 2 running API 28 and a Pixel 3 running API 29)--both worked great in AS-3.6.3 and I could develop apps, compile, load, and run them with no problem.
After the update to AS-4.0, the virtual devices no longer appear in the devices box at the top of the GUI--it just says "No Devices". When I open the AVD Manager, I can see them, and I can start them (although when I start them I get a pop-up saying "AVD Manager: Unable to locate adb"), but I can't get any code to download and execute on it. On the Pixel 3 emulator, I also get another pop-up saying "Detected ADB: Could not automatically detect an ADB binary.", and it gives instructions to resolve it, which don't make any difference (jump into extended controls and toggle "Use detected ADB location").
When I try to open a past project and run it, I get the same behavior--no devices found.
I've also tried making new emulators, hoping the new setup would recognize them, but to no avail. Tried starting and restarting AS, as well as the computer, also to no avail. I have Android SDK Build-Tools 30-rc4, the latest Android SDK Command-line Tools, Android Emulator 30.0.12 Android SDK Platform-Tools 30.0.1, and the Intel x86 Emulator Accelerator all installed.
I've Googled and spoken words of fierce power over this for several days now. Any suggestions for how to get AS-4.0 to recognize the emulators? I've resisted uninstalling everything and starting over--was hoping it was just a configuration thing.
Thanks in advance,
Uber
After some more Googling, I found the answer here (I think my constraint of wanting an answer for AS-4.0 specifically kept me from finding it):
Could not automatically detect an ADB binary - Android Studio
I had to redownload the SDK platform-tools zip file and reinstall it. I don't know why the old one got messed up with the migration from AS-3.6.3 to 4.0, but there you go--such is life with complicated software.
As soon as I replaced the old platform-tools directory with the new one, all my old emulators showed up and I was back in business.
Thanks anyway!
Uber

Android Studio for Mac not opening

I am not able to get Android Studio running on Mac, even after waiting for 15 minutes or so, it's still stuck on this screen:
What could be the problem?
Android Studio v2.2.3
MAC OSX 10.12.1 on MacBook Air
Its just downloading necessary elements and SDK if necessary. So please check your internet connection and give it some time to finish the download.
I faced same problem. Found the solution..
Just delete all files related to AndroidStudio first.. you can refer
https://gist.github.com/tahmidsadik112/f08356d14a85d898299a
Now install AndroidStudio again and if you are behind any proxy then after launch setup the proxy with authentication.. That's it!!!
For me it was a bit different experience, when I tried opening Android studio for the first time in my Mac. It allowed me to create a new Project and then while loading the IDE it got stuck -
The IDE was not getting opened. Apparently it seems like it was downloading something of size around 250 MB. I was stuck there for around 30 mins.
Then after 30 mins when the IDE opened, it threw an error and asked to install missing platform and sync project.
I clicked on the link and a new installation started of Android SDK Platform 26.
After the SDK Platform being installed it threw another error and asked to install the SDK build tools. On clicking the link the installation started:-
Finally after the installation of the SDK build tools, I was able to open the Android studio and access the code error free:
Happy Coding!! :)

using push notification using on visual studio on genymotion

I followed the link given below:
https://azure.microsoft.com/en-in/documentation/articles/app-service-mobile-cordova-get-started-push/#optional-configure-and-run-the-app-on-android
I also built the quick start azure project as said by your tutorial.
Now that I am trying to run the app on genymotion emulator (I have installed google play services in it) the build is giving me many errors
please click on the link of the image to see the errors
PS: The process is giving build errors so using genymotion is actually not a problem
Someone please help
The error indicates that you are missing a dependency from the Android SDK. Open up the Android SDK Manager and install google play services. If you installed the Android SDK as part of the Visual Studio install, you may need to run the SDK Manager as Administrator to do the install.

standalone sdk manager in Android Studio

Tools => Android => SDK Manager to open SDK manager, and then check the "Show Package Details" to see the the list of installed and not installed components.
I try to find "Sample" folder under individual Android version, but I just unable to find the "Sample" component. I am very upset because I want to install Gesture builder that is inside the "Sample" folder.
By accident, I click the "Launch Standalone SDK" to launch the screen that looks similar to the SDK manager on eclipse, and I find the Sample folder.
Anyone can tell me what the reason I am unable to find the Sample folder on opened SDK manager (there are 3 tabs: SDK Platforms, SDK Tools and SDK update Sites)
Thanks
You need to download the samples for the particular sdk you're targeting. Furthermore, samples change from sdk to sdk.
So first find out which sdk, did the Gestures Builder sample come from, and then download that samples for that sdk.
After that, use the Android Studio wizard to create a project from the sample. Just be sure to target the same sdk (you can always change that target sdk later, once you have the sample).
Using Android Studio is best way to do it. There is no need to go to the folder itself and do things manually.
Actually, GesturesBuilder seems to be very old, it's api level 4 (Android 1.6). No wonder you have trouble finding it. My suggestion would be not to bother with it and try to find a more recent project example directly from github.com

livecode Installing app on target - Android

I have a very simple test that I am doing in Livecode Community 6.5, on Windows 8.1.
I have created a button which shows a dialog window when clicked on.
When I run the test in an emulator, the dialog window Standalone Builder Progress reaches the stage "Installing application on target device and then" gets stuck.
Each time I have to terminate LiveCode in the Task Manager. I have tried changing the device but got the same results.
From Android Studio I can see the device when I start AVD.
Make sure that the Platform version of the AVD is the same or higher than the Minimum Android Version in the Standalone Application Settings of your stack.
Try in addition to:
install the latest stable version of LC 6.6.2 from here: LC downloads
make sure you have the Android SDK running with SDK Tools revision 22.6.3 (rev. 23 may not work properly and needs some workaround)
try with using Android 2.3.3 (API 10) - install both SDK Platform and Google APIs
in the Standalone Settings select "Sign for development only" and "Allow External Storage"
if you changed the "Identifier" (default shows as "com.yourcompany.yourapp"), make sure that its contents does not contain any "-" and "&" since they are not working there; possibly change to default.
create a standalone android app (apk) and try to install it on a real device
Thank-you to everyone who helped.
I think 2 things have to be there in order for it to work.
unique Identifier & external storage
Thanks

Resources