Android 9 patch won't load - android

I have a question regarding Android 9 patch. Basically when I click and open the 9Patch tool, the screen went blank and can never start. I have tried to drag a picture into it, and it just crashes. Things I have tried are:
re-download Android SDK and re-install
re-start my computer
I am sure I have downloaded the correct version of Android SDK, so my guess is maybe it has nothing to do with Android, but settings in my computer, but I don't know where and how to fix it. So any suggestions and advices are welcome!! Thanks!

This seems to be a known problem on Mac.
https://code.google.com/p/android/issues/detail?id=57473&can=1&q=draw9patch&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
There seems to be a patch available from Apple which should fix this problem.
Also, check this thread.
draw9patch just hangs on Mac 10.7.5

Try to use Android Asset Studio
This link presents Icon generators and Simple nine-patch generator. it's very simple.

Related

Android studio's Android SDK download button is not activated

I'm having trouble with my android studio and I even changed my windows, now I'm just frustrated. Can someone help me? I almost looked everywhere.
So this is when I've installed android studio and this appears.
Then it automatically goes to this page and wants to download android SDK but the check box is not activated! and as you can see the download size is 0!
And that's the next one!
So I quitted the setup and opened the SDK manager from the android studio and this is what it says:
picture
does anyone know what should I do to download SDK? And by the way, I'm living in Iran, that's one of those countries that include United States sanctions. Do you think it's related and if Yes what should I do?
p.s: This is the first time I'm asking a question on Stackoverflow, so forgive me if I did something wrong in the asking process.
After doing some changes to my IP I could fix the problem. So, if anyone has the same problem I think it's related to their countries limit problems. You should change your IP.

System image folder in config.ini doesn't exist

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.

Android Draw9patch is missing?

Can anyone please explain why the draw9patch isn't on my computer despite ADT and all? A search after the jar-file doesn't give any result.
I believed it should be installed by default. AFAIK, nobody else has had this problem.
Can anyone help? I've tried making 9 patches on my own using Paint.NET by adding one black pixel to the left and top of the image, but as I am new to Android, I can't make it work. I even tried a utility called better9patch to no avail. I am getting quite frustrated right now as I think the graphics of a program should be the least of your concern when programming.
Infact, the popular draw9patch application is now available as a feature in the android studio application itself. If you try to open any files with a .9.png extension in your project, it will be opened in a 9 patch drawer perspective. Here is a screenshot.
You should download "draw9patch" folowing this link: https://androidstudio.io/downloads/tools/download-the-latest-version-of-draw9patch.jar.html.
Afterwards you extract the file and it will work.
open up your terminal navigate to sdk/tools. and type
chmod +x draw9patch
./draw9patch
hope it can fixed.
You can use Android Asset Studio
Simple nine-patch generator. This is web application.
A collection of tools to easily generate assets such as launcher icons
for your Android app.
Project page: https://romannurik.github.io/AndroidAssetStudio/
The program should be under android-sdk/tools/draw9patch. If you want to create the image manually, you need 1px-wide transparent border all around the image with black dots on those empty spaces to denote patches

Android 9-patch images don't stretch correctly

I have the exact same problem as this guy, only the solutions proposed don't work for me.
my 9 Patch Image stopped working
In eclipse, my 9-patches look as they should, but when running the app on my device, they stretch like a normal png-image.
I just updated to the latest sdk version, then I tried the fix proposed in the question linked above, but it didn't help.
Is there anyone else who has the same problem, and for whom the mentioned fix doesn't help?
Help would be much appreciated!
After my happy comment in April, the error reappeared after some image manipulation. Then I got it working by redrawing the image borders. I now believe that the problem was that one (or more) of the pixels on the border was not completely transparent. I find it odd, though, that the compiler doesn't react on that, the file suffix was .9.png, after all... And I don't understand why it was shown correctly in the eclipse preview.
Double-check that you ARE using the very latest SDK (r17), and then do a full, clean rebuild of your project.
I've seen this issue many times, but even when the SDK bug was there a full rebuild would fix it. Since r17 I've not seen it.

How do I use this Android Emulator Bug Patch?

2 Days ago I posted a question regarding my emulator displaying weird when changing screen sizes (as seen here.
I eventually found what seems to be a patch for this particular bug over here. But, and I do feel stupid asking this, how do I use this patch??
I've never used a patch and this doesn't seem like a simple exe that I run...
Any Ideas?
You should use the patch program to apply it to your source code.
Usually, you can run patch -p0 < the-patch-file. But you may have to adjust the p value parameter.
The detailed process of building android tools from sources described on the android source site. The adt plugin stored in development/tools/eclipse.

Categories

Resources