Android Studio无法与Genymotion一起使用

时间:2014-12-11 16:55:27

标签: android android-studio genymotion

我正在尝试在Genymotion上打开一个简单的应用程序,我收到了这个错误

Unexpected error: package manager reports that package com.codeherenow.trafficlights has not been installed: Expected string 'Package [com.codeherenow.trafficlights]' not found in output: Can't find service: package

java.lang.Throwable
    at com.intellij.openapi.diagnostic.Logger.error(Logger.java:113)
    at com.android.tools.idea.run.InstalledApks.setInstalled(InstalledApks.java:86)
    at org.jetbrains.android.run.AndroidRunningState.uploadAndInstallApk(AndroidRunningState.java:1205)
    at org.jetbrains.android.run.AndroidRunningState.doPrepareAndStart(AndroidRunningState.java:920)
    at org.jetbrains.android.run.AndroidRunningState.prepareAndStartApp(AndroidRunningState.java:874)
    at org.jetbrains.android.run.AndroidRunningState.prepareAndStartAppWhenDeviceIsOnline(AndroidRunningState.java:842)
    at org.jetbrains.android.run.AndroidRunningState.doStart(AndroidRunningState.java:676)
    at org.jetbrains.android.run.AndroidRunningState.start(AndroidRunningState.java:652)
    at org.jetbrains.android.run.AndroidRunningState$1.run(AndroidRunningState.java:298)
    at com.intellij.openapi.application.impl.ApplicationImpl$8.run(ApplicationImpl.java:419)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:149)

在事件日志中:

01:50:05 PM Gradle build finished in 3 sec
01:50:39 PM Session 'app': running
01:50:41 PM Throwable
            Unexpected error: package manager reports that package com.codeherenow.trafficlights has not been installed: Expected string 'Package [com.codeherenow.trafficlights]' not found in output: Can't find service: package

当我尝试在手机上运行应用程序时,它可以正常运行。

有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我解决了这个问题。

我打开虚拟盒子 - >我的设备 - >偏好 - >网络并将仅限主机网络更改为网桥