[Q]Help with Apache Ant! - Android Q&A, Help & Troubleshooting

Hello,
I started studying Java development some time ago. I am reading Thinking In Java, which is a very good guide for the almost-newbies like me. But in the second chapter of the book you are asked to install the book's source code. As the URL provided in the book doesn't seem to work anymore, I came across this.
Here, I met two problems:
1- I don't understand step 5. Where should I find bin, and what do they mean with "your path"?
2- I un-zipped the Ant tool in the folder, but when I try to use "Ant build" nothing happens. If I only write "build", it seems to work, but it suddenly stops. What do I have to do to get it working?
Thank you in advance.

Related

dsixda kitchen

ive installed cygwin but when i call ./menu the answer is
"scripts/check_binaries: line 22: clear: command not found"
Error: The application 'clear' is not installed. The kitchen
will not function properly without it. Refer to the
FAQ for the Android Kitchen at xda-developers.com for
assistance on installing the binary for 'clear'.
but on the terminal when i call Ctr+L it cleans the window.
am i doing something wrong ??
You just quoted the answer to your question! I thought I made the error messages easy enough to understand.
There is an answer to that same question in the FAQ and it has been asked several times in the thread if you search.
believe me, ive done some research before posting...
my big wall is that i dont understand dev or prog logical spelling and i am not english as you can see by my flag.
even on some threads that i read, user cant get a specific answer because helpers and users always point for faq .
ikon_pt said:
believe me, ive done some research before posting...
my big wall is that i dont understand dev or prog logical spelling and i am not english as you can see by my flag.
even on some threads that i read, user cant get a specific answer because helpers and users always point for faq .
Click to expand...
Click to collapse
This is not an excuse. You don't need to understand development/programming or even fluent English to install Cygwin. The specific answer to your exact question is in the Android Kitchen FAQ, it's not there so that somebody can get you off his back. The FAQ is there in simple English and its purpose to stop questions like this being asked a hundred times and cluttering up the forums and wasting my time answering the same thing over and over. I didn't spend all that time working on answering the questions for nothing. I'm trying to make the kitchen instructions and errors as descriptive and helpful as possible to the user yet somehow it makes it harder for you.
In brief, simply open up the readme file and make sure you followed the cygwin instructions correctly.
I'm sorry. did not want to undervalue your efforts and your work.
was having a bad day and did not pay real attention to your work.
is true, everything is the way it is explained, and followed to the letter, we have a kitchen completely furnished and ready to cook.
a true thank you for your work and hope to continue to have your news.
...
dsixda said:
You just quoted the answer to your question! I thought I made the error messages easy enough to understand.
There is an answer to that same question in the FAQ and it has been asked several times in the thread if you search.
Click to expand...
Click to collapse
calm down ..is it so hard to answer...blabla iam developer
browse to https://github.com/dsixda/Android-Kitchen , download as zip and extract it to C:\cygwin\home\user (assume its install location)
working only on x64 version based PC only.
rename your extracted folder to kitchen
before make sure cpio,perl,ncurses,wget,zip,unzip,gcc has installed from cygwin setup.
cd kitchen
./menu
solution
if you downladed the packages from external source then while installing cygwin when a list of apps appears on top left of list search for default and keep clicking on it until install appears. it will solve the 'clear' problem. if still persists contact me. hit thanks if i helped.
I don't think any one looked at the dates of when this question was posted.
Cygwin not working
Hello guys. I have done what you have said in regards with the installation (installed correct 32bit java, click install instead of default, and downloaded half url package in cygwin installation wizard) however it keeps showing the Error: The application 'clear' is not installed .
Any other solutions you can think of?
Thanks!
amit34521 said:
if you downladed the packages from external source then while installing cygwin when a list of apps appears on top left of list search for default and keep clicking on it until install appears. it will solve the 'clear' problem. if still persists contact me. hit thanks if i helped.
Click to expand...
Click to collapse
After hours of searching only one that helped .. thanks =))
SWisaiahAG said:
After hours of searching only one that helped .. thanks =))
Click to expand...
Click to collapse
welcome
amit34521 said:
if you downladed the packages from external source then while installing cygwin when a list of apps appears on top left of list search for default and keep clicking on it until install appears. it will solve the 'clear' problem. if still persists contact me. hit thanks if i helped.
Click to expand...
Click to collapse
working 32bit thanks !
ikon_pt said:
ive installed cygwin but when i call ./menu the answer is
"scripts/check_binaries: line 22: clear: command not found"
Error: The application 'clear' is not installed. The kitchen
will not function properly without it. Refer to the
Android Kitchen FAQ at xda-developers.com for further assistance.
This is the problem i am getting too....and i cant find the solution for this too....please help mee.... i m totally new
Click to expand...
Click to collapse
answering the question?
appreciate your unselfishness
amit34521 said:
if you downladed the packages from external source then while installing cygwin when a list of apps appears on top left of list search for default and keep clicking on it until install appears. it will solve the 'clear' problem. if still persists contact me. hit thanks if i helped.
Click to expand...
Click to collapse
Thank you!..i too overlooked this step and you quickly resolved my issue.....
android kitchen
when i type ./menu it says clear is not installed .... pls say a solution ......
ikon_pt said:
ive installed cygwin but when i call ./menu the answer is
"scripts/check_binaries: line 22: clear: command not found"
Error: The application 'clear' is not installed. The kitchen
will not function properly without it. Refer to the
FAQ for the Android Kitchen at xda-developers.com for
assistance on installing the binary for 'clear'.
but on the terminal when i call Ctr+L it cleans the window.
am i doing something wrong ??
Click to expand...
Click to collapse
Clear not found fix.....
Need to download packages
1)Ncurses...download all your required its --a clear application
2)wget...debug, perl ,Utils , web download all
3) zip.....I download all default
4)cpio ....archive debug and Utils
Open cyngwin setup and download above packages
Secondly your java version should be 1.7.***
I solve this problem......... check for you!!
Please hit thanx ....if it helps:good:
Mahi01127 said:
Clear not found fix.....
Need to download packages
1)Ncurses...download all your required its --a clear application
2)wget...debug, perl ,Utils , web download all
3) zip.....I download all default
4)cpio ....archive debug and Utils
Open cyngwin setup and download above packages
Secondly your java version should be 1.7.***
I solve this problem......... check for you!!
Please hit thanx ....if it helps:good:
Click to expand...
Click to collapse
For me it didn't work, i try everything and it stills gives me the same message of clear.

[Q] Emulator-x86 and Rage of Bahamut

Hi everybody,
Im trying to fix my problem myself for about a week now, but seems like my nooby knowledge is not enough to get it done...
First of all the description of my problem:
I used to play Rage of Bahamut (in apps described as v2.0) on the Emulator-x86 (ICS 4.0.4 with gpu acceleration). Everything worked fine, but about 1 week ago the admins of the game made an update and my old version stucks at a "404 page not found" page directly after I enter username and password and press the login button.
What I have tried:
I tried several Android versions and app versions on the emulator. The main problem is that newest apk files contain a .so library and I'm not able to start the app after an installation by adb. I tried with libhoudini, but no success.
I checked the http requests and responses to the game server to find out why the older version stucks after the login and I realized that the server denies my "device". I cant figure out what phone information would be needed to cheat their server.
Please dont tell me to use Bluestacks. I know the game works on it, but its not really playable. I would like to use my speedy Emulator-x86.
Anybody out there who knows about my problem or simply needs a challenge? Please help me to run Rage of Bahamut on a emulator x86.
Thanks and Regards
DaShyGuy

[Q] Need help with building CM

Hi all, I am trying to build android from source (Cyanogenmod) for my phone Sony Xpreia Pro (iyokan). I am following the instructions at wiki{DOT}cyanogenmod{DOT}org/w/Build_for_iyokan (I haven't posted a lot so I can't post URLs ). During my build I need to do one additional step. I need to pull the proprietary files from my device. This is where the problem comes in.
I found that there are 4 files which the extract-files.sh script cannot extract. This causes problem in the build process and the build process stops without completion. The files which the script cannot find are:
/system/bin/calibrator
/system/etc/firmware/wl1271-fw-multirole-roc.bin
/system/lib/libc2d2_z180.so
/system/lib/egl/libGLESv2S3D_adreno200.so
I found wl1271-fw-multirole-roc.bin at "/system/etc/firmware/ti-connectivity/" instead of "/system/etc/firmware/". Is it fine to modify the "proprietary-files.txt" to have this path instead of the "/system/etc/firmware/"? I am not sure if the functionality of both the files is same.
Also I found a file called "wlan_calibrator" instead of "calibrator" in the same location. I also found a file called libGLESv2_adreno200.so instead of libGLESv2S3D_adreno200.so
Would it be fine if I change the name in "proprietary-files.txt"? Again, I am not sure if the functionality of the other files is same. I couldn't find the file called "libc2d2_z180.so"
I really don't know what to do and would really appreciate if anyone could help me on what I should be doing.

[4.2.2][Fake GALAXY S5 mini][SM-G800][Translation] Useful notes on Translating

Hello
[INTRO](a little background)
This is a guide for those who want to have their phone in their language but the operating system does not have it built in. You can flash a new ROM that has it or install an app right? Not so much. There are reasons for these methods to fail or simply not work for your situation. My problem was that the bootlegged hardware was not supported by the official ROMs or the Android community. This forum is also riddled with threds that started by people who need to mod something about their phone but have no technical knowhow. There wouldn't be annything wrong with that exept that the awnsers in these threds are something along the lines "Oh you just need to do this thingnemabob" that's it one sentence pointing to a technical slang word that means nothing to anyone but a seasoned developer despite first post DIRECTLY STATES IT WAS MADE BY A PERSON ASKING FOR A STEP BY STEP SOLUTION OR A LINK TO A TUTORIAL!
[pre-procedure]
List of necessary software:
Zipsigner (this goes on your phone)
ADB
text editor of choice( notepad++ recommended)
AIO-Flasher
smali/backsmali (depeding on wether your system files are odexed more on that later)
APKstudio
[installing above software]
Zipsigner
Why you need it?
As you modify your apk files their signature changes. Basically if you change anything about them the phone will no longer recognise these as "its" therfor you need to convince your phone that these are in fact okay with zipsigner.
how to install?
This is an app. If you ever installed anything from Google playstore before than you know how to install it. Go to your Google play store app on your phone. Search for Zipsigner and pick the top app. Agree to all the demands and tap on install
ADB
why you need it?
this is a command line piece of software. these might be very scary to use but don't worry follow the tutorial and you'll be okay. That aside what is it used for. ADB is a powerful tool but we will use it only to copy and paste files to and from Phone
how to install it?
ADB comes packed up with Android Development Kit so the easiest way to install it is to get the ADK
[STEP 1]
Okay so you want to translate your phone for one reason or another. Make backup! Backups are important. You want to have something when you fail to fall back on. Yes "When" you fail. Not "if" you fail. You will screw up but as long as you have a proper backup everything is okay.
You can back up your phone in few different ways.
Hello
[INTRO] (skip if you are not interrested in fluff)
For the past week I lived in Android Hell looking for what I thought would be a simple procedure and I wanted to share my expieriences somewhere so that no one else has to go through this flustrating expierience.
I got two phones (Galaxy S5 and Galaxy S5 mini)and I was taked with translating them. Well It should not be a problem I thought because it should be as easy as going into [settings]>>[region and langages] and choosing Polish. There is no Polish. So that was my first step towards the translating thiese.
[STEP 1]
First thing first backup. I am by no means a talented programmer or modder so I went with Samsung Kies but software didn't recognise neither phone. After fiddling with drivers and a back-and-forth with samsung costumer support we came to conclusion that phones are fake. IMEI of one identifies it as a Blackberry and other as Nokia >_< well okay they still have some sort of Android so there should be a way to translate them anyway. First thing on the agenda is still backup. So I went through a triall and error to get both roms dumped. I was successful with ANDROID AIO FLASHER which was a godsend after I failed time and again to push romdump's INSTALL into the phone. I managed to get one ROM off by now but other Phone still insists on denying me ability to dump the rom because of Segmentation error. but at least I have one rom backed up.
[STEP 2]
Okay I got myself ROM now what? I decided to make a transfusion. Why bother with getting down and dirty when you can just use the work of others. So I downloaded a ROM with same version of the Android OS and begun looking for language pack or something similar. No luck this is not how Android works. After some research I came to the conclusion that in order to make things work I need to basically decompile each and every APK file that refers to system functionality and translate Strings.xml by hand in order to ensure compatibility.
[PRESENT DAY]
this is where I am now. all I wonder if there is a way to add a new file in the APKs with polish in it or should I just translate English "strings.xml" file and set langage to english?
Feel free to point out faults in my logic as well as provide tips and tricks for those of us who bought our phones on the cheap and just want to usethem with language they are comfortable with. I will build up this topic with factual information that I come across and try to make this into a universal guide to Android translation with resources to download. I do this because no one should be subjected to this and there is no decent step by step guide on this forum just disjointed and incompleate information in posths here and there. Belive me I looked both here and Google and after two weeks of finding nothing more than a hints I want to just give back to the community all I found.

Unbricking Amazfit Smartwatch 2 for Dummies

Before I bricked my Smartwatch 2, I haven't got the faintest idea about adb or flashing Android ROMS, in other words, I was a total dummy. But thanks to my careless mistake, I have now discovered a whole new world I must admit that the many attempts were quite frustrating and my guess is some of you reading this can totally relate to that. The solutions to the problem are actually all out there but they are scattered over different places. So to save you the pain and agony I went through, I have decided to put them all in one place here in a one-stop, step-by-step guide. I do not claim any credit for coming up with any of the solutions.......I'm just collating them. Real thanks should go to those who wrote the codes and instructions, and made the youtube videos that you are about to see below.
Before we start, two important points to note:
1. Follow the instructions very, very closely! It was carelessness that got us here in the first place. Most of us missed one very critical step that caused the fatal error - we didn't unlock the bootloader. YOU NEED TO UNLOCK THE BOOTLOADER! No two ways about it!
2. If you are new to adb, spaces are very important. Look closely and make sure you don't miss any spaces
Let's begin.
1. Follow the instructions in the post below from "Things you need" until Step #9. Do not go beyond that!
http://en.miui.com/thread-440615-1-1.html
2. Connect your Smartwatch to the pc via USB now if you haven't done so.
3. Next, follow the instructions in the post below. It is in Italian but if you don't know Italian like me, right click in the page and select "Translate to English". Clock in the translation refers to watch.
http://nicolasagliano.com/lo-sblocco-del-bootloader-e-arrivato/
4. Your watch should display a triangle with ! in the middle when its in recovery mode (see attached photo)
5. Next, go to the link below and follow the instructions in "Installation on Custom ROM" until Step#5 only
https://forum.xda-developers.com/smartwatch/amazfit/rom-stratos-amazfit-sport-watch-2-t3746334
6. Once you have installed the new ROM, your watch will reboot and a QR code will appear (see attached photo). At this point, you need to download and install Amazfit Watch app on your mobile phone. Turn on Bluetooth on your phone and pair it with the watch. Select your watch model on the app and scan the QR code. If the app doesn't recognize the QR code, you need to scan the code with your usual QR code scanner app. It will provide you with a link which you should go into and download an apk which will update your Amazfit Watch app. Once the app is updated, launch it and scan the QR code on the watch again. It should work this time.
7. Your watch is now in Italian mode. To switch to English version, watch the last part of the below youtube video:
https://www.youtube.com/watch?v=pwdAjhamhVk
8. Enjoy your newly unbricked watch!

Categories

Resources