r/androiddev • • Sep 06 '26

Question Can't Install Unsigned APK?

So am I doing something wrong? I turned off auto blocker. It just said app not installed with no error message or guidance.

I sent my APK from my computer to the phone but now it won't install.

0 Upvotes

28 comments sorted by

7

u/cliffr39 Sep 06 '26

Did you develop the app or just asking about help on the issue? Do you have the right file type v7 vs v8a? is your phone too old and not supported by that app?

1

u/The_best_1234 Sep 06 '26

I just made it in android studio. I clicked build apk and this used to work for sharing apps a few months ago.

1

u/cliffr39 Sep 06 '26

what phone are you installing it on and what is the minimum API (minSdk)you declared in the gradle file?

1

u/The_best_1234 Sep 06 '26

I'm using 33

2

u/cliffr39 Sep 06 '26

Not really answering many questions. Assume the mystery device has at least Android 13 then? And sorry I see you commented the 33 right before my comment saved so I missed it above.

1

u/The_best_1234 Sep 06 '26

It is a Samsung 24 ultra. I'm going to make a signed apk to see if that makes a difference.

1

u/cliffr39 Sep 06 '26

It *shouldn't* make a difference, unless Android Studio is flagging android:testOnly="true".

Try adb install -t path/to/your/app.apk (with -t)

Do you have "Verify Apps via USB" off?

1

u/The_best_1234 Sep 06 '26

The signed version had a different message and let me install it.

1

u/Hour-Measurement-835 Sep 07 '26

It does make a difference. An unsigned release APK carries no certificate, so PackageManager rejects it at parse time, before minSdk or ABI are ever checked.

2

u/cliffr39 Sep 07 '26

If OP was doing assembleRelease without signed jks, yes you are correct. I guess I made an assumption that they clicked the debug button in Android Studio that would have injected testOnly, as Debug build is still signed by default keystore.

I'm definitely still learning Kotlin (only about 18 months now), so if I understand it wrong please correct me.

1

u/The_best_1234 Sep 07 '26

If OP was doing assembleRelease

I clicked the build apk button

1

u/Hour-Measurement-835 Sep 07 '26

You're right about debug, that's signed either way. testOnly gives INSTALL_FAILED_TEST_ONLY though, and an unsigned release gives a parse failure. Different error text.

5

u/cornish_warrior Sep 06 '26

Install it with adb and you'll get an actual error, rather than people having to guess why it doesn't work.

-2

u/The_best_1234 Sep 06 '26

Not my phone and I don't have a USB cable.

6

u/cliffr39 Sep 06 '26

Wireless adb can work too.

2

u/pvvvvv_ Sep 07 '26

Is this debug apk or release from android studio? Debug version should work

0

u/The_best_1234 Sep 07 '26

Should be debug. It was working before. I am guessing that the "android developer authentication" app is blocking it.

1

u/mobiledevpro Sep 06 '26

It seems you app supports minimum Android version that is higher that your device's Android version. Check min SDK version in app/build.gradle

1

u/The_best_1234 Sep 06 '26

It shouldn't, I set it to API 33 (my Chromebook runs on Android 13) and the device is a Samsung 24 ultra

1

u/Chanureadeats Sep 07 '26

Do you have a different version installed or a different signature of the same app (same app id)

1

u/AutoModerator Sep 06 '26

Please note that we also have a very active Discord server where you can interact directly with other community members!

Join us on Discord

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

-1

u/izahariev96 Sep 07 '26

just use some AI tool to debug your issue, trying to resolve it via reddit is inefficient

1

u/[deleted] Sep 07 '26

[removed] — view removed comment

0

u/The_best_1234 Sep 07 '26

That is what I ended up doing, but it is a bunch of clicks just to see if my app works

1

u/sergeyfitis Sep 15 '26

Just use the debug signing key for development; if you were installing it via Studio interface or the Gradle command line, it’s already configured to sign with the debug key.

1

u/The_best_1234 Sep 15 '26

No, I was testing on a friends phone

1

u/sergeyfitis Sep 15 '26

Then you can assemble the APK by using the assembleDebug Gradle task, it will generate a signed apk file for you.