I was just trying to configure my machine to be able to test some android apps.
Some of the things I will need will be adb and uiautomatorviewer. To get adb, was easy, just had to download platform-tools from android website. However, when it came to get uiautomatorviewer everything went from easy to difficult pretty fast.
I looked into here https://www.guru99.com/uiautomatorviewer-tutorial.html and as you can see they mention that they install the whole Android studio just to retrieve uiautomatorviewer (which I definitely don't need).
I then noticed that when trying to download android we can download the command line tools only, which is great! Inside, it contained the sdkmanager so I should be able to download everything I needed. So now, following some help from android official website I was able to list all the packages available (the same list that is visible through the Android Studio UI, when opening the SDK Manager). I downloaded multiple packages, just to see which one would bring uiautomatorviewer - none of the listed one's did (I even tried changing channels and list packages). Also, I tried to look into android documentation but couldn't find anything saying which package has uiautomatorviewer, even on Android official docs.
Back to searching.. On a new blog, someone mentioned something about a tools folder https://www.softwaretestinghelp.com/uiautomator-tutorial/#2_Command-line_Tools_Only
So I just tried to do the command sdkmanager "tools" and voilá, inside that package, there it was uiautomatorviewer.
So my question is: why is this not showing somewhere? Did I overlook something? I feel that for such a easy setup I had to go into hell and come back (I've also seen that these folders got changed through the years, but even so.. ). Also was there a easier setup (without installing Android Studio)
Thanks!
Related
Recently I installed Xamarin and the Android SDK in order to mess around with Android development. After spending all day fixing errors before writing a single line of code, this one has me stumped. I haven't found a solution anywhere on the internet.
I have installed the emulator and I have downloaded several system images. I have searched for this config.ini but didn't find which one the error seemed to be referencing. I can build the solution just fine but when I try to debug it just says "There were deployment errors", and in the output window just says "Error: cancelled."
Is there any way to solve this issue?
Thanks.
So I come across the same error message on my device manager. I solved it with following step:
Go to your ~\.android\avd. There should be a folder named
[YourDeviceName].avd. For my case it was Nexus_5X_API_28_x86.avd.
Inside the folder there should be a config.ini. Look for a property
named image.sysdir.1. Mine was image.sysdir.1=system-images\android-28\google_apis_playstore\x86\.
Make sure the your have properly downloaded such image in
%ANDROID_HOME%\system-images.
For me, it seems that I have installed Android SDK twice in two different locations with Android Studio & Visual Studio Xamarin installation, and they have messed up my device manager. So I uninstalled one and moved the images and it worked fine then. While this is probably a year too late for OP, I hope this could help someone in the future.
I just had the same issue.
You solve this problem like this:
Select the corresponding Android emulator device
Hit the Ellipsis character at the upper right corner of Android Device Manager
Select "Download system image" menu item
This will download the missing system images for your Android emulator.
Here are some screenshots, depicting the solution (they're in German):
I suspect Microsoft didn't add these because they're not courtesy of Google. You need to accept Google's license terms when downloading the images.
today it's a shorter question I'd like to ask, to hear your opinions as I suppose some do this differently than others.
First of all,, I have an Android Studio project and am rather a novice on this subject of Android Development. That's why slight changes in the java or xml files could and did make my latest app unstable/ crashing.
Therefore I was asking myself wether Android Studio offers a way to backup stable builds - I could imagine this like a save-as option where you backup the working version and continue working on the the one but have a stable one backed up.
I know there's the export project function but I tried it out a couple of times and having worked on a project on the same device before, prior to reimporting a project causes an error and that's not the way I guess you should handle it in this situation.
I was looking at Google Cloud for using both version control and the option to commit new versions to the trunk and update them at a different location (different device). If that's the solution you propose, I need to look more closely into the documentation to get it up and running (set up the repository already but no clue how to commit changes/ versions).
So, long story short, what tool/ option do you prefer to have an export and a version control option unified for Android Studio?
Interested to hear and thankful for any advice on that!
There are multiple solutions,
Just find your solution/project in your file explorer and back it up, if you need it again just open the project with Android Studio. (not the most popular one)
Use a version control system like git. Link to tutorial (This is the most popular one), If u are unfamiliar with git, just google it and there are tons of examples and documentation. With git you can tag commits and after u mess up revert to the tagged commit
Git is the simpliest.
It's supported by AndroidStudio and later on you can upload your project to GitHub to access it from anywhere.
You can use it with terminal and shorcut keys, incons as well.
You also can make separate branches in order to make and test more versions parallely.
For more info take a look at: https://git-scm.com/about
and of course github: https://github.com/
Regards,
Cs
I'm trying to see the contents of a database I'm using through the execution of my program via DDMS. I've looked at lot of questions on here that explain how it's done. My understanding relies on the fact that on clicking Tools--> Android--> Android Device Monitor, there is a change in perspective however nothing of the sort happens when I do the above. In fact, there seems to be no indication at all, that I selected the Android Device Monitor. Could someone please point me in the right direction of finding out what could be wrong?
Going off what #will421 said in the comments, I ran monitor.bat and the typed out monitor in the console (Both needed to be done.) and then I was prompted to enter my sdk path. What tripped me up was the fact that I had two folders labelled sdk and sdk1 so choosing the right one is important. To view the contents of the dtatabase, I just followed along with the great answer at View contents of database file in Android Studio
I need some help with the designer of the visual studio/xamarin on the android.
I'm kinda noob with development, but I was hoping to do some examples, but the designer isn't showing up...
The tutorial videos, from the Xamarin itself, only says it need to create a new project and play with the designer, but when I do that, the designer is empty and I can't do nothing...
Here some pictures from what I have and from what I see on videos:
There's a couple things I'm thinking here. It's quite possible that your installation of Xamarin didn't go according to plan. Check your detailed Visual Studio version information in "Help -> About -> Copy Detailed Info".
Additionally, you might also be running on an outdated version of the Android SDK or there might be an issue with your Java config. Ensure you've got the Android SDK installed and updated and that you're using a current version of the Java SDK.
I also see there's a white box showing up on your Designer screen. Does that ever populate with an error? Usually, that will show some info on what exactly is going wrong.
Lastly, you can also check your logs in the following directory for more hints as to what's going on:
%LOCALAPPDATA%\Xamarin\Log
I hope this helps!
Good day guys
I have this kind of problem from my Eclipes Juno
I can't create a new android project because of this one
and i found several topics about this problem
but almost of the answers was pointing into two solutions
"Uninstall the support library from the Android SDK manager"
"have an internet connection and update online"
and i have two problems too...
first, i don't have internet connection in our home
Second, "i don't have it" (Support Library)
This is my android SDK
as you can see I have no Support Library so notting to uninstall
maybe you'll be confused "where did i get that platforms if as i said i have no internet connection in our home"
well i've manually downloaded all of it and manually extracted to my "plaform" directory....
i have encountered some errors before like this one
and luckly i was able to solve it using just manual downloading and extracting (a little workarounds)
but this one seems to be one of the hardest to me for now...
I keep browsing the web for finding such a "support library.zip" so that all i have to do is extract that one to its respective directory
and a step by step to where do i extract it... but sadly i found nothing...
i im thinking of some posible solutions
and maybe i need a help of a person who has a good running Eclipse Juno
make a request like " can you zip your support library folder from your SDK and upload it here"
and a simple "path" to what directory do i have to extract it.
whatever it maybe...
ill just trying every single workarounds just to solve it "offline"
i know online solution is less hassle and just a little clicks and problem solved,
but did you know how it happened?
do you know what eclipse or SDK did to solve that?
that's the reason why i want it offline just for me to understand every bit of it...
i want to solve it Offline...
Thank you in advance.....
you can go to download ADT-20.0.0.zip ,Install it and then restart Eclipse.
because Google is 2.2 and the earlier version to official library, support many 3.0 and higher version of the function, in the new construction time, the default will give you add libs folders and android - support - v4. Jar。
I also can be directly sent to you ADT-20.0.0.zip。please tell me your E-mail!