AhMyth / AhMyth-Android-RAT

Android Remote Administration Tool
GNU General Public License v3.0
4.53k stars 1.7k forks source link

Building Failed - Solution / Building failed when binding #51

Open p01t0t0 opened 6 years ago

p01t0t0 commented 6 years ago

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

p01t0t0 commented 6 years ago

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 commented 6 years ago

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!

nehatkkhan786 commented 6 years ago

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

p01t0t0 commented 6 years ago

@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 commented 6 years ago

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

p01t0t0 commented 6 years ago

@nehatkkhan786,

Check this issue.

burhanuday commented 6 years ago

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

nehatkkhan786 commented 6 years ago

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

burhanuday commented 6 years ago

@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

Zerukhan123 commented 6 years ago

@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 !!!!

Victor-Frank commented 5 years ago

building failed on parrot os plz help!!!!

OverRiD commented 5 years ago

run as root type ahmyth in command line

dikwickley commented 5 years ago

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!

nominomoses commented 5 years ago

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

Joniuton commented 5 years ago

Thanks nominomoses , it worked out right here!

sachdeva-dotcom commented 5 years ago

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

AnietieGodswill commented 4 years ago

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

natiethiopia commented 4 years ago

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

P1n3pple commented 4 years ago

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 commented 4 years ago

@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?

Zanderkail commented 3 years ago

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

Morsmalleo commented 3 years ago

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