web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / APK Generation for Mob...
Power Apps
Suggested Answer

APK Generation for Mobiles

(0) ShareShare
ReportReport
Posted on by 2
Hi,
 
I am trying to generate APK in mobile for one of my application. So that we can access App directly with out installing PowerApps. 
 
I am following the steps given at https://learn.microsoft.com/en-us/power-apps/maker/common/wrap/code-sign-android. During the generation of the keys, i am running the command "keytool -genkey -alias powerappswrap -keyalg RSA -keystore powerappswrap.jks -keysize 2048 -validity 10000" in command prompt. I am receiving error - Keytool is not recognised as internal or external command, operable program or batch file. 
 
Also when i try to open keytool.exe from "Drive:\Program Files\Android\Android Studio\jre\bin\keytool.exe", it gets opened and closed in a second.
 
Thanks
Categories:
  • CU01070257-1 Profile Picture
    4 on at
    i am also trying to do it, have you made it, please share it with me. thanks in advance
  • Suggested answer
    M Bilal Khan Profile Picture
    1,150 on at
    Hello @CU25101019-0,

    The error means that keytool isn't available in your Windows PATH. You don't need to open keytool.exe directly — it's a command-line utility, so it should be run from Command Prompt/PowerShell.

    If you're using a recent version of Android Studio, the bundled JDK is usually under:

    C:\Program Files\Android\Android Studio\jbr\bin

    Microsoft's current Power Apps Wrap documentation specifically recommends adding this folder to the PATH environment variable.

    You have two options.

    Option 1 – Run it using the full path

    In Command Prompt, try:

    "C:\Program Files\Android\Android Studio\jbr\bin\keytool.exe" -genkey -alias powerappswrap -keyalg RSA -keystore powerappswrap.jks -keysize 2048 -validity 10000
    

    If your Android Studio installation uses a different location, adjust the path accordingly.

    Option 2 – Add keytool to PATH (recommended)

    1. Search Windows for Environment Variables.

    2. Open Edit the system environment variables.

    3. Select Environment Variables.

    4. Under System variables, select Path → Edit.

    Select New and add:

    C:\Program Files\Android\Android Studio\jbr\bin
    
    • Click OK on all dialogs.
    • Close the existing Command Prompt and open a new one.
    • Run:
    keytool -version
    

    If it returns the Java/keytool version, you're ready.

    Then run the Power Apps Wrap command:

    keytool -genkey -alias powerappswrap -keyalg RSA -keystore powerappswrap.jks -keysize 2048 -validity 10000
    

    You'll then be prompted for the keystore password and certificate information. This will generate the .jks keystore file required for manual Android signing.

    Also, don't worry about keytool.exe opening and immediately closing when you double-click it. That's expected because it's a command-line tool, not a graphical application.

    If you're using the automatic signing option in the Power Apps Wrap wizard, you can avoid doing the manual signing steps altogether by configuring Azure Key Vault. Microsoft documents both approaches.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard