Android 模拟器无法从 JDeveloper 部署

Android Emulator Won't Deploy from JDeveloper

我正在尝试安装和测试 Oracle 推出的新移动应用程序框架

我有:

MAF 从 JDeveloper 中安装

所需的 SDK 工具包括 Android 支持库、Google USB 驱动程序、英特尔 HAXM 安装程序和 Google 云消息传递。

这是错误消息,中间没有任何更改,只是再次 运行。

[03:36:18 PM] Shutting down Android Debug Bridge server...
[03:36:19 PM] Deployment cancelled.
[03:36:19 PM] ----  Deployment incomplete  ----.
[03:36:19 PM] The ADB server indicates the emulator is currently offline.  The emulator may not be completely started.  Retry the deployment when the emulator has completely started.  Otherwise, manually restart the Android emulator and ADB server.  The following results were provided by ADB:
List of devices attached
emulator-5554   offline
 (oracle.adfmf.framework.dt.deploy.android.deployers.CheckAttachedDevicesDeployer)

下一个

[03:39:42 PM] Shutting down Android Debug Bridge server...
[03:39:43 PM] Deployment cancelled.
[03:39:43 PM] ----  Deployment incomplete  ----.
[03:39:43 PM] Illegal character in path at index 43: file:/C:/Users/aaron.parkes/Desktop/Working Directory/HelloWorld/deploy/MAF_for_Android_Profile/java_res/assets/jvm/lib/cvm.properties

完整日志,包括两次尝试。

[03:36:09 PM] ----  Deployment started.  ----
[03:36:09 PM] Target platform is  (Android).
[03:36:09 PM] Beginning deployment of MAF application "HelloWorld" to Android using profile "MAF_for_Android_Profile".
[03:36:13 PM] Checking state of Android Debug Bridge server...
[03:36:18 PM] Started Android Debug Bridge server.
[03:36:18 PM] Verifying a single Android emulator is online and connected to the ADB server...
[03:36:18 PM] Shutting down Android Debug Bridge server...
[03:36:19 PM] Deployment cancelled.
[03:36:19 PM] ----  Deployment incomplete  ----.
[03:36:19 PM] The ADB server indicates the emulator is currently offline.  The emulator may not be completely started.  Retry the deployment when the emulator has completely started.  Otherwise, manually restart the Android emulator and ADB server.  The following results were provided by ADB:
List of devices attached
emulator-5554   offline
 (oracle.adfmf.framework.dt.deploy.android.deployers.CheckAttachedDevicesDeployer)
[03:37:49 PM] ----  Deployment started.  ----
[03:37:49 PM] Target platform is  (Android).
[03:37:50 PM] Beginning deployment of MAF application "HelloWorld" to Android using profile "MAF_for_Android_Profile".
[03:37:50 PM] Checking state of Android Debug Bridge server...
[03:37:55 PM] Started Android Debug Bridge server.
[03:37:55 PM] Verifying a single Android emulator is online and connected to the ADB server...
[03:37:56 PM] Verifying this is a MAF application...
[03:37:56 PM] Verifying existence of the .adf source directory of the MAF application...
[03:37:56 PM] Verifying Application Controller project exists...
[03:37:56 PM] Verifying application dependencies...
[03:37:56 PM] Running dependency analysis...
[03:37:56 PM] Building...
[03:37:59 PM] Deploying 3 profiles...
[03:38:00 PM] Verifying project is a MAF project...
[03:38:01 PM] Wrote Archive Module to C:\Users\aaron.parkes\Desktop\Working Directory\HelloWorld\ViewController\deploy\ViewController_MobileFeatureArchive1.jar
[03:38:01 PM] Verifying project is a MAF project...
[03:38:01 PM] Wrote Archive Module to C:\Users\aaron.parkes\Desktop\Working Directory\HelloWorld\ApplicationController\deploy\ApplicationController_MobileFeatureArchive1.jar
[03:38:02 PM] Starting to prepare the packaging...
[03:38:26 PM] Verifying project dependencies...
[03:38:26 PM] Validating application XML files...
[03:38:30 PM] Validating XML files in project ApplicationController...
[03:38:30 PM] Validating XML files in project ViewController...
[03:38:39 PM] Copying FARs to the MAF application...
[03:38:39 PM] Extracting Feature Archive file, "ApplicationController_MobileFeatureArchive1.jar" to deployment folder, "ApplicationController".
[03:38:39 PM] Extracting Feature Archive file, "ViewController_MobileFeatureArchive1.jar" to deployment folder, "ViewController".
[03:38:39 PM] Copying framework resource files...
[03:38:46 PM] Copying framework java resource files...
[03:39:08 PM] Copying common javascript files...
[03:39:41 PM] Copying application image files...
[03:39:42 PM] Shutting down Android Debug Bridge server...
[03:39:43 PM] Deployment cancelled.
[03:39:43 PM] ----  Deployment incomplete  ----.
[03:39:43 PM] Illegal character in path at index 43: file:/C:/Users/aaron.parkes/Desktop/Working Directory/HelloWorld/deploy/MAF_for_Android_Profile/java_res/assets/jvm/lib/cvm.properties

我只想启动一个简单的 HelloWorld,感谢帮助。

问题可能是您的应用程序路径 Working Directory 中的 space。请参阅 Oracle MAF tips ,以确保您已正确设置所有设置

首先确保 Android 模拟器已启动并且 运行。 只有这样才能尝试部署。 (如果你有的话,部署到真实设备上实际上会更快)。

如上所述,您应该移动项目,使目录路径中没有 space。

即使在启动您的 Android 模拟器然后 运行 项目之后,您提到的错误也会被抛出。您需要做的是,从 'Debug' 下拉列表中更改 'Run Configuration'。然后转到 'Run/Debug' 侧面菜单 -> 'Edit Shared Settings' 按钮 -> 从列表中选择 select 'Android Emulator' -> 单击 'OK' 按钮。这是一个截图供您参考: