Intellij IDEA packs my source code into .apk - android

My project is a Flash pure Actionscript application for Android.
When I build an .apk through Build->Package AIR Application... I get .apk that works okay when installed on an Android device. But when I unzipped the .apk file I noticed that inside it in the "assets" folder is my entire source code which is in the project's folder marked as "Sources Root". How do I prevent this?

You can control what files will appear in the apk using the Files and folders to package Flash build configuration settings.

Related

How build apk file in android studio?

I'm new in android studio . I wrote an application and this run on gent motion successfully , gent motion android version is 4.1., then I want to get apk file , but this don't work . I go build>generate... then keystore is build but apk file don't.
And I go build>buildbundles>apks... but too don't build apk file. I find one apk file in my project folder in:
project>res>apk >apk_realese.apk
and send this to my phone but don't install.
My phone android version is 7.1, and my project android version is 4.
I don't know what do.
Please help.
In menu go to Build-> Build Bundles/APK ->Build APK .It will build your apk file.Once successfully finished, dialog will appear at bottom and just click locate it will move to the debug folder and you can get the apk file.It will install in all mobiles.
If you dont see apk file in that folder just follow the instructions in this link.
After Android Studio 3.1.1 update, the 'locate' link does not open generated APK folder
refer this too:
Apk location in New Android Studio
If you already have successfully build your project then apk file will be stored in your project/app/build/outputs/apk/debug/ folder.

Where is .apk file for android studio 2.1? like in eclipse its in "bin" folder

I am new in android studio, till now I am work on eclipse but now move to android studio, so Where is .apk file for android studio 2.1? like in eclipse its in "bin" folder.
there are 2 app-debug-unaligned.apk & app-debug.apk file. But when I take that APK file in my mobile for running test app. than after installed its crash
so basically i want to generate .apk file for external use. like when i am using eclipse, apk file in bin folder . when i take that apk file to my mobile that perfectly working
Hope you would find this helpful.
Find your apk here
YourProject/app/build/outputs/apk/app-debug.apk
Find your apk #,
YOUR_APP_PATH\app\build\outputs\apk\app-debug.apk
YOUR_APP_PATH\app\build\outputs\apk\app-debug-unaligned.apk
This may helps you
Open Project
1. Click on Your App
2. Click on Build
3. Click on outputs
4. Click on apk
5. Here You get app-debug.apk which is apk file
You can find it from android studio by changing the view structure to project
view the picture for reference
It depends on your configuration,When you are generating signed apk by default your apk will fall under the below mentioned folder.
Your_Projects_Folder/app/app-release.apk
All your debug apk file will generate in build folder like Sathis Kumar J metioned,Unsigned Debug Build

encoding the contents of assets folder in android cordova app

We are developing a cross platform mobile application. Using apache cordova for this. Our android project structure is like given below,
Project
- src
- gen
- assets
- bin
- res
One of the issue we are facing is, once we build the apk file, anyone can unzip the apk and see the files (html, js, css) in assets folder. Can we encode, uglify, minify or obfuscate these files? We are not using any automated build tools. Building apk using eclipse & adt plugin.
Any help much appreciated

How to get .apk file from /bin/folder? [duplicate]

I recently built an Android application using Eclipse (Galileo) on my PC/Xp. I'm a noob to Android development and it took me 2 months to build my app while reading/experimenting with all the Java and other programming ups/downs. The project runs fine on Eclipse. I now want to sign the application (currently reading on how to do this) in preparation to releasing it to the Android Market. At this point, I am stumped. The "signing your application" talks about signing the .apk file with your private key. My question is: where is the .apk file located on my PC/Eclipse files. I know where the src, res, manifest, and R.java files are located because I've been using them for the past 2 months. Where is the .apk file located? Hopefully someone can help me.
In Eclipse the default location for a compiled *.apk file is in the bin directory under the project workspace.
For example, my Eclipse workspace is under c:\Users\crsierra\workspace and my Eclipse Project is named HelloWorld. Therefore the HelloWorld.apk file will be located under c:\Users\crsierra\workspace\HelloWorld\bin\HelloWorld.apk
In eclipse right click on your project and in that menu select Android tools->Export signed Application package .
And In that appearing dialog follow the instructions.
You can export signed and unsigned .apk file using eclipse, as well as can generate private key too just use Project folder -- > right click --> Android tools
If you already running your project on emulator,you just close that emulator.And goes to
Project->clean
Project->BuildProject.
And then run your project in emulator and then check it out
bin/res/your.apk file
Typically in the bin folder.
Its Simple, Go to :
Workspace -> YourApp folder & in that folder type in the search bar(top-right) for your YourApp.apk !

Location of .apk file

I recently built an Android application using Eclipse (Galileo) on my PC/Xp. I'm a noob to Android development and it took me 2 months to build my app while reading/experimenting with all the Java and other programming ups/downs. The project runs fine on Eclipse. I now want to sign the application (currently reading on how to do this) in preparation to releasing it to the Android Market. At this point, I am stumped. The "signing your application" talks about signing the .apk file with your private key. My question is: where is the .apk file located on my PC/Eclipse files. I know where the src, res, manifest, and R.java files are located because I've been using them for the past 2 months. Where is the .apk file located? Hopefully someone can help me.
In Eclipse the default location for a compiled *.apk file is in the bin directory under the project workspace.
For example, my Eclipse workspace is under c:\Users\crsierra\workspace and my Eclipse Project is named HelloWorld. Therefore the HelloWorld.apk file will be located under c:\Users\crsierra\workspace\HelloWorld\bin\HelloWorld.apk
In eclipse right click on your project and in that menu select Android tools->Export signed Application package .
And In that appearing dialog follow the instructions.
You can export signed and unsigned .apk file using eclipse, as well as can generate private key too just use Project folder -- > right click --> Android tools
If you already running your project on emulator,you just close that emulator.And goes to
Project->clean
Project->BuildProject.
And then run your project in emulator and then check it out
bin/res/your.apk file
Typically in the bin folder.
Its Simple, Go to :
Workspace -> YourApp folder & in that folder type in the search bar(top-right) for your YourApp.apk !

Categories

Resources