3

When I try to install an apk through ADB In an Oppo R11 (version : R11_11A, Android 7)it fails:

adb install MyApp.apk

Failed to install MyApp.apk: Failure [-99]

A login screen shows up. Is this the same as the Xiaomi MIUI 8 problem? not allowing Installing apk's with no account? https://stackoverflow.com/a/41298306/7500344

Community
  • 1
  • 1
Gregory
  • 31
  • 1
  • 6

3 Answers3

1

you should add this line android.injected.testOnly=false to your gradle.properties.

Tino
  • 183
  • 3
  • 9
0

First of all install Oppo driver in PC

Turn on developer mode

And after that scroll down to Turn on USB debugging

Kaleem
  • 129
  • 1
  • 14
0

The problem occurs when trying to install android project on Chinese phones such as huawei, oppo, xiaomi etc.

After turning on developers mode and USB debugger mode on your phone, and adding all firebase required json file, SHA1, dependencies etc, to your project ,

First, you must register your fingerprint unlock mode to your phone. if your phone doesn't have fingerprint unlock mode, you must set password unlock mode. Anytime you try to install a project, it requires you to unlock the phone to allow instalation.