More than one file was found with OS independent path ‘lib/x86/libusb.so’

I was having this issue in my React-Native Bridge project after I added AAR files of 3rd party SDK. And I was linking the Bridge into my Main React-native application. Solution (May differ for you): Add this in app/build.gradle the Main React-Native application: android { // … packagingOptions { pickFirst ‘**/*.so’ } } Test the … Read more

Simple way to query connected USB devices info in Python?

I can think of a quick code like this. Since all USB ports can be accessed via /dev/bus/usb/< bus >/< device > For the ID generated, even if you unplug the device and reattach it [ could be some other port ]. It will be the same. import re import subprocess device_re = re.compile(“Bus\s+(?P<bus>\d+)\s+Device\s+(?P<device>\d+).+ID\s(?P<id>\w+:\w+)\s(?P<tag>.+)$”, re.I) … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)