能够将 ADB 连接到 bluestacks,但不能将 ppadb 连接到 bluestacks
Able to connect ADB to bluestacks, but not ppadb to bluestacks
我一直在尝试将 ppadb(android 调试桥与 python)与 bluestacks 一起使用。我能够将 adb 连接到模拟器,但无法将它与 python 库连接。它不会“找不到”模拟器,它只是停止并继续搜索,永远不会超出搜索设备的范围。
import ppadb
from ppadb.client import Client
from PIL import Image
import numpy
import time
adb = Client(host='127.0.0.1', port=5555) #Stops on one of these two lines
devices = adb.devices()
if len(devices) == 0:
print("No device found")
quit()
device = devices[0]
BlueStacks 将端口 5037 用于 ADB。这意味着
adb = Client(host='127.0.0.1', port=5555)
应该是
adb = Client(host='127.0.0.1', port=5037)
我一直在尝试将 ppadb(android 调试桥与 python)与 bluestacks 一起使用。我能够将 adb 连接到模拟器,但无法将它与 python 库连接。它不会“找不到”模拟器,它只是停止并继续搜索,永远不会超出搜索设备的范围。
import ppadb
from ppadb.client import Client
from PIL import Image
import numpy
import time
adb = Client(host='127.0.0.1', port=5555) #Stops on one of these two lines
devices = adb.devices()
if len(devices) == 0:
print("No device found")
quit()
device = devices[0]
BlueStacks 将端口 5037 用于 ADB。这意味着
adb = Client(host='127.0.0.1', port=5555)
应该是
adb = Client(host='127.0.0.1', port=5037)