You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Android新手求助:API23调试APK无法在同版本真机安装

Fixing "Apps not installed" for Your Android App (API 23)

Hey there, let's get this sorted out. As a fellow Android dev who's been in your shoes, I know how frustrating it is when debug builds work on emulators but fail on real devices—especially when you just want to share your app with friends. Here's what you need to do:

First, Check the Basics: Enable Unknown Sources

Since you're not installing from Google Play, your API 23 (Android 6.0) device needs permission to install apps from outside the Play Store. Here's how to turn that on:

  • Head to Settings > Security > Unknown sources
  • Flip the switch to enable it (you'll get a warning about risks, but it's totally safe for your own app)

This is probably the most common reason for that "Apps not installed" error when sideloading apps.

Fix the Debug APK Installation (Quick Test)

Wait, I spotted a typo in your APK path: app-debut.apk should be app-debug.apk (easy mistake!). Make sure you're transferring the correct file to your device.

To install it properly:

  1. Connect your phone to your computer via USB, and enable USB debugging (go to Settings > Developer options > USB debugging. If Developer options is hidden, tap "Build number" 7 times in Settings > About phone to unlock it).
  2. Open a command prompt in the folder where your debug APK lives, then run:
    adb install app-debug.apk
    
  3. If that fails, uninstall any existing version of the app first with:
    adb uninstall com.your.app.package
    
    (Replace com.your.app.package with your app's actual package name from AndroidManifest.xml.)

Create a Signed Release APK (Best for Sharing with Friends)

Debug builds are great for development, but they're not meant for sharing—some devices block them because they're signed with a temporary debug keystore. A signed release build is the reliable way to go. Here's how to make one in Android Studio:

Step 1: Generate Your Own Keystore

  • Open your project in Android Studio.
  • Go to Build > Generate Signed Bundle/APK.
  • Select APK and click Next.
  • Click Create new (since you don't have a keystore yet):
    • Pick a location to save your keystore (like C:\Users\User\keystores\myapp.jks).
    • Set a secure password (write this down—you'll need it later!).
    • Choose an alias (e.g., "myappkey") and key password (can be the same as the keystore password).
    • Set validity to at least 25 years (so you don't have to renew it anytime soon).
    • Fill in the other fields (name, org, etc.)—they can be dummy values if you want.
    • Hit OK, then Next.

Step 2: Build the Release APK

  • On the next screen, select Release under Build Variants.
  • Check both V1 (Jar Signature) and V2 (Full APK Signature)—V1 ensures compatibility with API 23 devices.
  • Click Finish.
  • Your signed release APK will be at C:\Users\User\AndroidStudioProjects\SimpleApp\app\build\outputs\apk\release\app-release.apk.

Step 3: Share It!

  • Transfer this APK to your device (via USB, email, or a messaging app).
  • Make sure unknown sources are enabled (as before).
  • Tap the APK to install—it should work smoothly.
  • Now you can send this file to your friends directly. They just need to enable unknown sources on their API 23 devices too, and they'll be able to install it without issues.

Troubleshooting Other Potential Issues

  • Corrupted APK: Sometimes the build process glitches. Try cleaning and rebuilding your project: Build > Clean Project then Build > Rebuild Project, then generate the APK again.
  • Existing App Version: If any version of your app is already on the device (even a test build), uninstall it first before installing the new APK.
  • Device Restrictions: Some manufacturers add extra security checks. The signed release APK is way more likely to bypass these than a debug build.

内容的提问来源于stack exchange,提问作者Parveen Kumar

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.15 08:23:19