Exclude unnecessary libraries in dji-sdk package in the dependencies of build.gradle and exclude unnecessary libraries in the Maven remote repository. But be careful as this can cause crashes and compiling errors.
https://mvnrepository.com/artifact/com.dji