【问题标题】:cannot run cordova run android device无法运行 cordova 运行 android 设备
【发布时间】:2022-12-02 16:45:20
【问题描述】:

As requested by playstore I\'m changing my app API Level (targetSdkVersion) to 31.

I have uninstalled API Level 30 from Android Studio and installed API Level 31.

After that I cannot run my app on device anymore for debugging.

I\'m receiving a message saying \"Could not find target matching { type: \'device\' }\"

C:\\htdocs\\app\\myapp>cordova run android --device
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\\Users\\myusr\\AppData\\Local\\Android\\Sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: undefined
Reading build config file: C:\\htdocs\\app\\verpro\\build.json
Subproject Path: CordovaLib
Subproject Path: app

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use \'--warning-mode all\' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.4.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 960ms
50 actionable tasks: 50 up-to-date
Built the following apk(s):
        C:\\htdocs\\app\\verpro\\platforms\\android\\app\\build\\outputs\\apk\\debug\\app-debug.apk
Checking Java JDK and Android SDK versions
ANDROID_HOME=C:\\Users\\ncchi\\AppData\\Local\\Android\\Sdk (recommended setting)
ANDROID_SDK_ROOT=undefined (DEPRECATED)
Using Android SDK: undefined
Reading build config file: C:\\htdocs\\app\\verpro\\build.json
Could not find target matching { type: \'device\' }
  • is your device connected via USB debugging or wireless debugging?
  • I can debug my app when connecting by usb debugging. But I have to transfer the apk to my cellphone and install it manually. The command \"cordova run android --device\" is not working anymore, is it depracated?
  • oh no not at all. it\'s not depreciated. it can never get depreciated.

标签: cordova android-api-levels cordova-android


【解决方案1】:
猜你喜欢
  • 1970-01-01
  • 2019-11-20
  • 2019-12-16
  • 1970-01-01
  • 2020-11-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多