2017-10-15 116 views
0
n","com.tellm.android.app/.com.jodelapp.jodelandroidv3.view.mainactivity","-S"] 
[ADB] Error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity 

[ADB] Error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity 
    at Object.wrappedLogger.errorAndThrow (C:\resources\app\node_modules\appium\node_modules\appium-support\lib\logging.js:63:13) 
    at ADB.callee$0$0$ (C:\resources\app\node_modules\appium\node_modules\appium-adb\lib\tools\apk-utils.js:79:9) 
    at tryCatch (C:\resources\app\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40) 
    at GeneratorFunctionPrototype.invoke [as _invoke] (
Error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity 


[UiAutomator] UiAutomator shut down normally 
[UiAutomator] Moving to state 'stopped' 
[ADB] Attempting to kill all uiautomator processes 
[ADB] Getting all processes with uiautomator 
[ADB] Getting connected devices... 
[ADB] 1 device(s) connected 
[ADB] Running 'C:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ZY22325Q4Q","shell","ps"] 
[ADB] No uiautomator process found to kill, continuing... 
[UiAutomator] Moving to state 'stopped' 
[Logcat] Stopping logcat capture 
[ADB] Getting connected devices... 
[ADB] 1 device(s) connected 
[ADB] Running 'C:\adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe' with args: ["-P",5037,"-s","ZY22325Q4Q","shell","am","force-stop","io.appium.unlock"] 
[AndroidDriver] Not cleaning generated files. Add `clearSystemFiles` capability if wanted. 
**[**MJSONWP] Encountered internal error running command: Error: Error occured while starting App. Original error: Activity used to start app doesn't exist or cannot be launched! Make sure it exists and is a launchable activity**** 

和碼推出的活動是:無法在appium

public class Jodel { 


    private static AndroidDriver driver; 
    public static void main(String[] args) throws MalformedURLException { 
     // TODO Auto-generated method stub 



     DesiredCapabilities capabilities = new DesiredCapabilities(); 
     capabilities.setCapability(CapabilityType.BROWSER_NAME, ""); 
     capabilities.setCapability("deviceName", "Moto G(3rd Generation)"); 
     capabilities.setCapability("platformVersion", "5.1.1"); 
     capabilities.setCapability("platformName", "Android"); 
     // capabilities.setCapability("app", app.getAbsolutePath()); 
     capabilities.setCapability("appPackage", 
       "com.tellm.android.app"); 
     capabilities.setCapability("appActivity", 
       "com.jodelapp.jodelandroidv3.view.mainactivity"); 
    capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT,"100"); 

     driver = new AndroidDriver(new URL("http://0.0.0.0:4723/wd/hub"), 
       capabilities); 
    } 

} 
+0

這意味着,這不是與主力的意圖的活動,檢查你的'清單'爲實際啓動器活動 – MeknessiHamida

+0

我如何檢查清單我只是有我的apk與我 –

+0

然後問如果你沒有接觸到代碼,啓動器的活動是什麼 – MeknessiHamida

回答