• #5 楼 @anikikun

    info: Getting focused package and activity
    ERROR: debug: executing: "D:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe" -s 524c4d8a shell "dumpsys window windows"

  • 模拟器里面都可以运行。。

    这个是不是没有 root,是 adb 权限问题?

  • ERROR: debug: Screen already unlocked, continuing.
    info: Pushing command to appium work queue: ["getDataDir",{}]
    info: [BOOTSTRAP] [info] Got data from client: {"cmd":"action","action":"getDataDir","params":{}}
    info: [BOOTSTRAP] [info] Got command of type ACTION
    ERROR: debug: dataDir set to: /data/local/tmp
    info: [BOOTSTRAP] [debug] Got command action: getDataDir
    ERROR: debug: executing: "D:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe" -s 524c4d8a shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n android.view/HomeActivity"
    info: [BOOTSTRAP] [info] Returning result: {"value":"\/data\/local\/tmp","status":0}
    info: We tried to start an activity that doesn't exist, retrying with . prepended to activity
    ERROR: debug: executing: "D:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe" -s 524c4d8a shell "am start -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000 -n android.view/HomeActivity"
    info: Waiting for activity to be focused

  • #3 楼 @anikikun
    // new 1.0 vison
    DesiredCapabilities capabilities = new DesiredCapabilities();
    capabilities.setCapability(CapabilityType.BROWSER_NAME, "");
    capabilities.setCapability(CapabilityType.VERSION, "4.1.2");
    capabilities.setCapability("device", "Selendroid"); //Selendroid Android
    capabilities.setCapability("app", app.getAbsolutePath());
    capabilities.setCapability("appPackage", "android.view");
    capabilities.setCapability("appActivity", "HomeActivity");
    driver = new AppiumDriver(new URL("http://127.0.0.1:4723/wd/hub"), capabilities);

  • 我自己在手机里面点开 APP ,测试程序跑成功了。。
    为什么启动不了这个 APP???

  • ERROR: debug: executing: "D:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe" -s 524c4d8a shell "dumpsys window windows"
    info: Getting focused package and activity

  • 你好,请问 adb 权限不够,这个怎么解决??