appium运行报错:The instrumentation process cannot be initialized within 30000ms timeout.


from appium import webdriver
import time

desired_caps = {
    'platformName': 'Android',
    'deviceName': '70MX20B001329',
    'platformVersion': '11',
    'appPackage': 'com.tencent.mm',
    'appActivity': 'com.tencent.mm.plugin.account.ui.WelcomeActivity',
    'noReset': 'True',
    'appWaitForLaunch': 'false'
}

driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
time.sleep(5)
driver.quit()

连接自己手机都可以正常运行,平板就报错,试了百度很多方法都没有解决 ,有小伙伴知道是什么原因引起的报错吗

报错内容:

D:\PyCharmWork\appium\test1\Scripts\python.exe D:/PyCharmWork/appium/test1/appiumTest.py
Traceback (most recent call last):
  File "D:/PyCharmWork/appium/test1/appiumTest.py", line 15, in <module>
    driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', desired_caps)
  File "D:\PyCharmWork\appium\test1\lib\site-packages\appium\webdriver\webdriver.py", line 157, in __init__
    AppiumConnection(command_executor, keep_alive=keep_alive), desired_capabilities, browser_profile, proxy
  File "D:\PyCharmWork\appium\test1\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
    self.start_session(capabilities, browser_profile)
  File "D:\PyCharmWork\appium\test1\lib\site-packages\appium\webdriver\webdriver.py", line 226, in start_session
    response = self.execute(RemoteCommand.NEW_SESSION, parameters)
  File "D:\PyCharmWork\appium\test1\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "D:\PyCharmWork\appium\test1\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: The instrumentation process cannot be initialized within 30000ms timeout. Make sure the application under test does not crash and investigate the logcat output. You could also try to increase the value of 'uiautomator2ServerLaunchTimeout' capability


Process finished with exit code 1