Android Studio "Generate Signed APK Wizard" doesn't run Proguard - android-studio

I'm running Android Studio 0.3.2 and I'm able to correctly generate a signed APK for my application through the Generate Signed APK wizard. Now I wanted to try out the option to additionally run Proguard through that wizard, checking the box 'Run Proguard' and specifying the default proguard-android-optimize.txt config file, as well as a local proguard-project.txt file in the config file paths box below the checkbox. I also made sure the build variant is a Release variant. However after clicking the Finish button an APK is created without errors but apparently it is exactly the same APK as the one obtained with 'Run Proguard' unchecked. Proguard is not called at all. What am I missing here?
Cheers,
Tom.

Related

How to import APK file on Android Studio

can anyone give me information on how to import an APK file (which was created on Animate) into Android Studio for testing on their emulator? looking around the internet I found only bits and pieces of information which were very confusing for the most part, none was a solid start to finish instruction. can anyone help me with either instruction or provide a good link?
You don't usually import apk file to run in Android Studio. If you have the apk file and want it to run in an emulator, you have to drag and drop the file in the emulator, it will show up in the download folder of the emulator, and from there you can install it.
The debug verion of apk file is already generated and you can find it in your system at AndroidStudioProjects\YourApplication\app\build\outputs\apk\debug

Flutter in Android Studio: Build Bundle/APK greyed out

I installed Flutter and Android Studio following this link here:
https://flutter.dev/docs/get-started/editor
I've been coding in flutter for two months now and can run my app in simulator or on a connected device no problem.
But when I try to actually build an apk via "Build" --> "Build Bundle(s) / APK", this option is greyed out.
Android Studio: 3.3.2
You can't build apk using Build option in Android Studio if you are running your Flutter project.
There are 2 solutions to build it.
In terminal, write flutter build apk (this will build apk for release version not the debug version)
Open your module in Android Studio and you can use Build option of the Android studio to build the debug apk.
For option 2, you can go to build.gradle file and you should see an option in Android Studio asking you to open the module separately (see the screenshot) Tap on this option and you can then build your apk in both debug and release mode.
I realize this might have already been answered, but I have another solution to this issue. I was having the same problem after modifying my pubspec.yaml file, so after trying to build within terminal nothing would happen. Apparently, you have to open the .yaml file within Android Studio from your project directory in order to for AS to realize that there's been a change to the file. After I opened the file from the project folder, the option for Build > flutter > Build Bundle(s) /APK > Build App Bundle finally reappeared again. Just sharing my experience and hope it can help someone else who may come across this rather strange issue.
Reopen the project from your projects directory, not from recent projects option. This solved for me
Please follow these steps:-
Go To Project Structure>Project>NOSDK
Change NOSDK to the latest
ANDROID API PLATFORM
Then go to MODULE and DO THE SAME

android studio doesn't let me try different alias when building signed apk

I tried to build a signed apk but i wrote an incorrect alias and build failed, now whenever i try to build writing the correct alias and passwords build still fails but the error messagge is:
No key with alias 'old alias' found in keystore
Can someone explain me how do I build with a different alias name?
My keystore and alias passwords are 100% correct.
I know it's a bit old but what worked for me was cleaning the project (in Android Studio, go to option "Build" then "Clean project". It may vary depending on your Android Studio version) and then trying again to generate a signed APK with the right alias.

Flutter How to make release version in Android Studio?

By default Android Studio use debug mode when building Flutter application. You can build the release version with the command line, see How to optimize the Flutter App size?
flutter build apk --release
Now: how to configure Android Studio to do the same, when I run the application (Shift+F10)? I can't find this setting...
You have to edit the run configuration:
Open the run configuration:
Add the --release flag:
Note that using the --release flag is not supported when you build with the Android Emulator.
In Android Studio , click on :
> Run
> Flutter Run 'main.dart' in Release Mode
flutter build appbundle --release --build-name=1.1.1 --build-number=3
Or you can run that in your Terminal, Remember to change build name and build number to corresponding values of your release app versioning.
as the green play button in toolbar runs the debug mode, i switched it to release mode via:
Right click Play Icon in toolbar -> Customize Toolbar
click "+", chose Add Action
chose "Plugins/Flutter/Run in Flutter release mode"
Delete the old Play button by selecting it and click "-"
The best way to make your apk for release mode is that open the project -> click on the android folder then make your apk as same as generated application build in android using your .jks key and alias password and name. this is the correct way for making apk in flutter.

How to run Github android code if it don't have Apk file

I just want to know how to run this code -
https://github.com/neelkadia/WhereAreYou
As it doesn't contain apk file. And when i download zip and open this unzipped file in android studio, the studio says "Nothing to show".
Please tell me how to run this application and make apk
Follow steps:
1: open the unzipped file in android studio.
2: Build your file using build option from menu or from right side
[
3: After building app us the run option and select your device to run app .
all done!!
hope this will help.

Resources