The "android" command is deprecated.
For manual SDK, AVD, and project management, please use Android Studio.
For command-line tools, use tools\bin\sdkmanager.bat
and tools\bin\avdmanager.bat
Invoking "D:\android-sdk-windows\tools\bin\avdmanager" list target
Available Android targets:==============] 100% Fetch remote repository...
id: 1 or "android-14"
Name: Android API 14
Type: Platform
API level: 14
Revision: 4
id: 2 or "android-20"
Name: Android API 20
Type: Platform
API level: 20
Revision: 2
id: 3 or "android-22"
Name: Android API 22
Type: Platform
API level: 22
Revision: 2
id: 4 or "Google Inc.:Google APIs:24"
Name: Google APIs
Type: Add-On
Vendor: Google Inc.
Revision: 1
Description: Google APIs, Android 24
Based on Android 7.0 (API level 24)
Libraries:
com.android.future.usb.accessory (usb.jar)
API for USB Accessories
com.google.android.media.effects (effects.jar)
Collection of video effects
com.google.android.maps (maps.jar)
API for Google Maps
id: 5 or "android-24"
Name: Android API 24
Type: Platform
API level: 24
Revision: 2
id: 6 or "android-25"
Name: Android API 25
Type: Platform
API level: 25
Revision: 3
id: 7 or "android-26"
Name: Android API 26
Type: Platform
API level: 26
Revision: 2
id: 8 or "android-27"
Name: Android API 27
Type: Platform
API level: 27
Revision: 3
id: 9 or "android-28"
Name: Android API 28
Type: Platform
API level: 28
Revision: 6
id: 10 or "android-29"
Name: Android API 29
Type: Platform
API level: 29
Revision: 3
Here is the output:
Plugin version
cordova plugin version | grep cordova-plugin-file-opener2
Here is the output:
cordova-plugin-file-opener2 2.2.1 "File Opener2"
Expected Behaviour
succeed open apk then finished installation.
Actual Behaviour
when step to "File.exists()", get "false" then return a failure which says "file not found"
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 10
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
huawei Honor v20
Cordova CLI info
E:\hello>cordova -v 8.1.2 (cordova-lib@8.1.1)
E:\hello>cordova info Collecting Data...
Node version: v4.4.3
Cordova version: 8.1.1
Config.xml file:
<?xml version='1.0' encoding='utf-8'?>
Plugins:
cordova-plugin-camera,cordova-plugin-compat,cordova-plugin-file,cordova-plugin-file-opener2,cordova-plugin-file-transfer,cordova-plugin-whitelist
Android platform:
The "android" command is deprecated. For manual SDK, AVD, and project management, please use Android Studio. For command-line tools, use tools\bin\sdkmanager.bat and tools\bin\avdmanager.bat
Invoking "D:\android-sdk-windows\tools\bin\avdmanager" list target
Available Android targets:==============] 100% Fetch remote repository...
id: 1 or "android-14" Name: Android API 14 Type: Platform API level: 14 Revision: 4
id: 2 or "android-20" Name: Android API 20 Type: Platform API level: 20 Revision: 2
id: 3 or "android-22" Name: Android API 22 Type: Platform API level: 22 Revision: 2
id: 4 or "Google Inc.:Google APIs:24" Name: Google APIs Type: Add-On Vendor: Google Inc. Revision: 1 Description: Google APIs, Android 24 Based on Android 7.0 (API level 24) Libraries:
com.google.android.maps (maps.jar) API for Google Maps
id: 5 or "android-24" Name: Android API 24 Type: Platform API level: 24 Revision: 2
id: 6 or "android-25" Name: Android API 25 Type: Platform API level: 25 Revision: 3
id: 7 or "android-26" Name: Android API 26 Type: Platform API level: 26 Revision: 2
id: 8 or "android-27" Name: Android API 27 Type: Platform API level: 27 Revision: 3
id: 9 or "android-28" Name: Android API 28 Type: Platform API level: 28 Revision: 6
id: 10 or "android-29" Name: Android API 29 Type: Platform API level: 29 Revision: 3
Here is the output:
Plugin version
Here is the output: cordova-plugin-file-opener2 2.2.1 "File Opener2"
Sample Code that illustrates the problem
Logs taken while reproducing problem