AhMyth-Android-RAT icon indicating copy to clipboard operation
AhMyth-Android-RAT copied to clipboard

Building Failed - Solution / Building failed when binding

Open p01t0t0 opened this issue 6 years ago • 22 comments

Trying to build APK with no luck, i always get "Building Failed". Java is already installed.

p01t0t0 avatar Nov 18 '17 21:11 p01t0t0

After a few hours of struggling, i decided to reinstall my OS - kali light Gave another try with AhMyth and now it can build the APK. Using the following steps to install java and it is working good now. https://computingforgeeks.com/how-to-install-latest-java-jdk-on-debian-8-kali-linux-2-0-and-ubuntu-15-04/

p01t0t0 avatar Nov 19 '17 18:11 p01t0t0

The app is now working, no more issue generating the APK file. The app is working good on my local network. Jut one issue, i cannot bind the generated APK file with another app. Can anyone help!

p01t0t0 avatar Nov 19 '17 19:11 p01t0t0

Brother is there any solution that without reinstalling the OS we can fix the 'building the apk failed' error!

nehatkkhan786 avatar Nov 21 '17 19:11 nehatkkhan786

@nehatkkhan786, did you install java?

If not, follow steps on blog below to install it. https://computingforgeeks.com/how-to-install-latest-java-jdk-on-debian-8-kali-linux-2-0-and-ubuntu-15-04/

If you already installed it, then just uninstall it and re-install it with step above.

That's what worked for me!!!!!!

p01t0t0 avatar Nov 22 '17 03:11 p01t0t0

yes brother i did that but nothing works its still showing that (Adding source ip:port Failed).

nehatkkhan786 avatar Nov 23 '17 02:11 nehatkkhan786

@nehatkkhan786,

Check this issue.

p01t0t0 avatar Nov 26 '17 21:11 p01t0t0

Download the code and open the apk folder in Android Studio or Eclipse, Go to iosocket.java file and change the ip address to your ip address and compile (i did this using Android Studio 3.0 and it is working for me) @p01t0t0

burhanuday avatar Nov 28 '17 08:11 burhanuday

brother i have not find any apk folder in the source code. can you please tell me the process if you dont mind. @burhanuday

nehatkkhan786 avatar Nov 28 '17 08:11 nehatkkhan786

@nehatkkhan786

  1. Download the code by pressing the download button

  2. Open Android Studio

  3. Press Open existing Eclipse project, in the window, select the Ahmyth-Client folder Wait for gradle build to complete. Install any required build tools and upate project gradle to the latest version when the popup comes up

  4. In the IOSocket.java file, find the ip address and port line and change it to your global ip address and the port you have opened on your router

  5. Now sign and compile the project, you will have your apk ready

burhanuday avatar Nov 30 '17 11:11 burhanuday

@burhanuday You seem like a nice person and it looks like you know a lot about this. I have downloaded Android Studio and have edited the IOSocket.java file but I am struggling compiling the .apk file. I don't know how to do it. Please clarify from step 3 on wards. I shall be very thankful for your help. I am looking forward to you reply !!!!

Zerukhan123 avatar Feb 28 '18 18:02 Zerukhan123

building failed on parrot os plz help!!!!

Victor-Frank avatar Dec 07 '18 08:12 Victor-Frank

run as root type ahmyth in command line

OverRiD avatar Jan 27 '19 14:01 OverRiD

Tried everything.. building failed everytime.. i am using java jdk 8u.201... Please help! if another versioin of java has to installed please give the full name.. thanks!

dikwickley avatar Feb 17 '19 19:02 dikwickley

Hey...found a solution for you...open terminal type .. update-alternatives --config java.. pick the /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java which can be 3 or which ever number yours will be then press enter and try the build again...mine worked

nominomoses avatar May 20 '19 20:05 nominomoses

Thanks nominomoses , it worked out right here!

Joniuton avatar Jun 01 '19 20:06 Joniuton

hey nominomoses can you describe its all process i am a beginner pls help

sachdeva-dotcom avatar Oct 16 '19 16:10 sachdeva-dotcom

hey @sachdeva-dotcom Open terminal and type: update-alternatives --config select 2 and then press enter

AnietieGodswill avatar Apr 29 '20 18:04 AnietieGodswill

Trying to bind with the original apk, some times it works and some times I get "Building Failed". Java is already installed. Please help

natiethiopia avatar May 13 '20 11:05 natiethiopia

After a few hours of struggling, i decided to reinstall my OS - kali light Gave another try with AhMyth and now it can build the APK. Using the following steps to install java and it is working good now. https://computingforgeeks.com/how-to-install-latest-java-jdk-on-debian-8-kali-linux-2-0-and-ubuntu-15-04/

I use a windows OS, is this still applicable?

P1n3pple avatar Jun 16 '20 16:06 P1n3pple

@nehatkkhan786, did you install java?

If not, follow steps on blog below to install it. https://computingforgeeks.com/how-to-install-latest-java-jdk-on-debian-8-kali-linux-2-0-and-ubuntu-15-04/

If you already installed it, then just uninstall it and re-install it with step above.

That's what worked for me!!!!!!

@nehatkkhan786, did you install java?

If not, follow steps on blog below to install it. https://computingforgeeks.com/how-to-install-latest-java-jdk-on-debian-8-kali-linux-2-0-and-ubuntu-15-04/

If you already installed it, then just uninstall it and re-install it with step above.

That's what worked for me!!!!!!

My OS is windows, what applies to windows?

P1n3pple avatar Jun 16 '20 16:06 P1n3pple

im on windows and i tried the java 8 update but im still getting the build failed error

Zanderkail avatar Jul 23 '21 04:07 Zanderkail

im on windows and i tried the java 8 update but im still getting the build failed error

I have fixed this problem in my fork of AhMyth, you also dont need Java 8 anymore with my fork of AhMyth as my fork of AhMyth now runs with Java 11 openjdk, I released version 1.0-beta.2 on my fork of AhMyth as it is much more stable than version 1.0-beta.1, you can download the AhMyth setup.exe file for Windows from the link below, it will take you to the newest AhMyth release of v1.0-beta.2 on my fork of AhMyth

https://github.com/Morsmalleo/AhMyth/releases/tag/v1.0-beta.2

Just follow the Windows installation instructions at the bottom of the README.md on my fork of AhMyth, or you can follow my video for it here

https://youtu.be/UVdAQzdYFso

Morsmalleo avatar Jul 23 '21 05:07 Morsmalleo