I opened eclipse tonight and planned to make an app, but adb reported an error when running it . It turns out that adb is a 32-bit program, but my system is 64-bit. Then you need to install the 32-bit compatibility library.
sudo apt-get install lib32z1 lib32ncurses5
After the installation is complete, the previous errors are gone, but a new error is reported, and libstdc++.so.6 cannot be found . Then go ahead and install the library.
sudo apt-get install libstdc++6 lib32stdc++6
Now it does not report an error when it is running, but a new problem arises again, the plugged-in mobile phone cannot be recognized.
First, check the USB device ID:
lsusb
Find the phone line Bus 001 Device 015: ID 17ef:7513 Lenovo , then the ID is 17ef.
Then create a new configuration file:
sudo vim /etc/udev/rules.d/51-android.rules
Add the ID you just checked, as follows:
SUBSYSTEM=="usb",ATTR{idVendor}=="17ef",MODE="0666"
Restart the udev service:
sudo /etc/init.d/udev restart
Restart eclipse.
At this point, you can debug the Android program on the real machine on Linux!