I usually create projects with Eclipse and import them into Android Studio, because I hate the project structure AS gives me. In it´s module settings, I have the possibility to create artifacts which allow me to output the built apk to a certain path.
Now I have created a Gradle project directly with AS and it seems that those projects have quite less options than eclipse projects. I don´t find anything to output my apk and I don´t find any apk inside my project folder after building.
How do I get my unsigned apk out of the build process??
Unsigned Apk, as the name suggests it means it is not signed by any Keystore. A Keystore is basically a binary file that contains a set of private keys. Every App that we install using the Google Play App Store needs to be signed with a Keystore.
Open the Settings app on your Android device. Tap the “Security” option in the Personal section. Tap the check box next to Unknown Sources. This enables your device to install unsigned, third-party apps from sources other than the Google Play app store.
It is not possible to publish unsigned APK on Google Play. 5) Generate new signed APK using keyStore file provided by your developer 6) after generating new signed APK, you can update your existing google play application by new APK.
Use
Build > Make Project
to build an apk file from Android Studio.
You can get your unsigned apk under the below path
$YOUR_PROJECT/$YOUR_MODULE/build/apk
unsigned apk files will have "unsigned" text in their names.
[ UPDATE ] :
In Recent release of Android Studio you will not get apk file on sysncing or Make Project. There are two other methods in order to get the apk file
gradlew assembleDebug(or whatever build varient you want a build for)
and the update new apk path will be
$YOUR_PROJECT/$YOUR_MODULE/build/outputs/apk
This has been done by Android Tools team to improve the Android Studio performance.
The above answer of pyus13 did not work for me (Android Studio 0.8.1).
Instead use
Run > Run "YourProject"
to build the code and create the unsigned apk. You can find your apk file under
$YOUR_PROJECT/$YOUR_MODULE/build/outputs/apk
UPDATE
Still works with Android Studio 1.5.1 You only get new APKs when you have code changes since you last built your code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With