Sunday, 9 August 2015

How To Convert Android Project Into Complete APK File In Eclipse


So many of you must be developing something great and powerful as a beginner but you are worried about how to convert your android project into an APK file. I know it is the most basic part which makes your app useful and it sounds easy, but many game creation software doesn't export your project directly into an APK file, they just export the Android Project Files with resources and all your stuff in it separately. APK is what makes everything one and enable your Android to read that and install that as an application. And so, without getting any further, here we begin.


Here i will be using Eclipse Luna (android application maker tool by oracle). You might have heard about Android Studio by Google but it is a heavy tool and is a bit complicated for beginners though the future will be based on it after all but always start with the basics.


Okay, first of all, locate your Android Project folder and create another folder inside it and name it as 'WorkSpace" or any other name you like. Do not create the folder where your data and resources of your project are located, outside of that folder BUT along with the folder in which your data is stored.


Now open Eclipse, it will prompt you to select a work space location where it could save its data, so click browse and choose the same folder which you created in the step one. 

Note:- make sure you create folder for eclipse work space every time in the same location beside your android project.


Now, when eclipse finishes loading its components, you will be redirected to a welcome page, close that by clicking the top right X mark on that TAB page. And when you do, everything will be shown blank white. 


Now click "HELP" option on the top and select 'Install New Software' option in the drop down menu. After that, another window will open and look around it, you will see an "ADD" button on the top right side of that window. Now, click that button and it will open another small window which will ask for Name and Location. In name, you just type any thing you like but i prefer you should name it small like "Tools". And now, in Location, you have to type the address of the Google Eclipse Plugin Files, which is this

But make sure, your eclipse verison is 1.7.0 or later to install these tools.

Now, click the OK button and wait till the components load.


After the components loads, you will see a list of tools with different names, so you should select all by clicking the "Select All" button below the list and then click "Next" button located in the lower right side of that window. Now, just follow the "Next" button and accept the terms then in the end click "Finish" button.


Now you are done with the tools. You will have to wait till these tools install. Now on your Main Screen of your eclipse, click "File" option on the top left side of the window and click "Import" button from the drop down menu. You will be prompted to choose option from below list, you should select "Android > Existing Android Code Into Workspace" and then click the "Next" and in the next window, click "Browse" button and choose the folder where both (your work space folder and your android project folder) are located. Then, you will see two files with tick on them appear on that windows, you just make sure they are ticked and then click "Finish" button.


Now that your files are loaded, you will see some errors in it,but don't worry.
Now, just open the "" drop down in the left side bar of the eclipse and double click the "AndroidManifest.xml" file, you will see the changes in your front window where it will be written Android Manifest at the top. Now, just change the Version Code and Version Name, make version code to 1 and Version name to 1 also. You will see some package errors, if you have made an android game in BuildBox game creation software, you will see some package errors other wise in most cases you don't. 

So if your project is created in Buildbox, then you must have the BuildBox project file saved, open that in the BuildBox and in settings, just write your package name in bundle id and then export it to Android and then repeat the process with the different work space folder in that project. 


Now after you made changes to your Android Manifest, then just click the save button imaged as small floppy drive on the top left side below "File" option. And then, click "File" option again but this time you choose "Export" option from the drop down. Now after you choose that, you will be prompted to the same screen as when you imported your project, just slect "Android > Export Android Application" and then you will see a follow up window where you have to follow the instructions, then just check if you got any errors there but you should be clean and you should be able to proceed next. And then, you will be prompted to choose a keystore or create new one, you just tick the create new one option and set its location where ever you want (desktop preferred). And then click "Next" button.


Now in the next windows, you will see Key creation window, you will have to write your information on that screen and then proceed Next and then you will see the option to where to save your Android Application, just click "Browse" and choose your desired location (desktop preferred) and then click "Finish" button and wait till it saves the file. Make sure you name your application with a (.apk) extension before clicking the "Finish" button or otherwise if you accidentally do it without (.apk) extension then, you will have to repeat the step seven and eight again.


Now, you have successfully created your APK File of your Android Project. Locate that file and copy it on your device and install it and test it right now to check for any mistakes before you publish it to Play Store.


Eclipse Mars Package Latest

Google Plugin For Eclipse Info



Video tutorial is best way for beginners to learn more accurately. Download any quality which suits you best and watch it anywhere , anytime. There are many benefits of video tutorial, it gives the student a live feel of problem solving and with real life on screen instructions, students can understand more easily and properly. All files are uploaded on Microsoft OneDrive and are scanned completely. For great experience, watch it in 1080p Full HD.





This How-To was written by Safeer Ahmed , this tutorial is for those who are beginner in Android Application Development , though it is a pretty basic thing which is quite ignored by many beginners and so in the end it brings up problems in their development. 


No comments:

Post a Comment

Please do not create any sort of violence or use any kind of abusing words, or else an action will be taken.

Safeer Ahmed (Founder And CEO Of Vision.Inc)
I hope to achieve something as big as Light Yagami but in a positive way. Its 2016 and people are dying in interior reigions of the world and here everyone needs rights for adapting non-natural ways to live a life. Mybe we all should stick with the rules of nature instead of making our own.