Building an apk

Answered

I created a simple helloworld in IDEA using Koplin, but I cannot figure out how to build an apk. I researched it on the web and the closest thing I can get is "Extract signed packages to deploy and run your applications on physical devices" and "Extract a Signed Android Application Package Wizard" and I can't find this option in any of the menu options in the IDE.

TIA

Paul

0
7 comments
Avatar
Yaroslav Bedrov

Hello,

There should be "Android Application" artifact type in "Project Structure | Artifacts": https://www.jetbrains.com/help/idea/generating-a-signed-apk-through-an-artifact.html

 

0

I don't like to go with any type of APK. We face some legal and security issues when using an APK.

0

I created a simple helloworld in IDEA using Koplin, but I cannot figure out how to build an apk. I researched it on the web and the closest thing I can get is "Extract signed packages to deploy and run your applications on physical devices" and "Extract a Signed Android Application Package Wizard" and I can't find this option in any of the menu options in the IDE.

TIA

Paul

I faced a similar situation when trying to build a delta script apk in IntelliJ. The easiest way for me was opening the project with Android Studio and using Build → Build APK(s) or Generate Signed Bundle/APK.

After Gradle sync, the APK was generated in the app/build/outputs/apk folder and worked normally on the device.

0

Hello Heinrichklaaseen 

TO generate an APK in IntelliJ IDEA, you follow the same steps as you mentioned above for Android Studio. Go to Build | Generate App Bundles or APKs | Generate APK, or you can choose Build | Generate Signed App Bundle or APK.

Also, if you run the project through the Run Configuration, you can get the APK:

  1. Select the app run configuration (top toolbar).
  2. Click Run (▶). This builds a debug APK and installs it on the selected device/emulator.
  3. The generated debug APK is typically at: app/build/outputs/apk/debug/app-debug.apk
0

You don't need that option just to create an APK. In Android Studio, use the Build menu and look for the APK build option. For a release APK, use the Generate Signed Bundle / APK option.

0

The main thing to check first is whether the project is correctly recognized as an Android/Gradle project. If the Android Application artifact or APK build options are missing, checking the project structure and Gradle setup is a good first step. Once the project is configured correctly, the APK generation options should become available.

0

If you’re using Kotlin in IntelliJ IDEA, Android Studio is usually the easier route—open the project there and use Build > Generate App Bundles or APKs > Generate APKs.

0

Please sign in to leave a comment.