Hi,
I’m trying to build GroundSDK on Ubuntu 20.04.3 in VirtualBox 6.1.28 on Win10 via the command from the documentation:
$ ./build.sh -p groundsdk-android -t build -j
I’m getting the bellow errors.
Any ideas how to solve the issues?
Task :groundsdkdemo:lint
Ran lint on variant debug: 14 issues found
Ran lint on variant release: 14 issues found
Wrote HTML report to file:///home/user1/devs/groundsdk/out/groundsdk-android/gradle/groundsdkdemo/reports/lint-results.html
Wrote XML report to file:///home/user1/devs/groundsdk/out/groundsdk-android/gradle/groundsdkdemo/reports/lint-results.xml
Task :groundsdkdemo:lint FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:groundsdkdemo:lint’.
Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
…
android {
lintOptions {
abortOnError false
}
}
…
The first 3 errors (out of 11) were:
/home/user1/devs/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:191: Error: Missing permissions required by BluetoothDevice.connectGatt: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt = mBtDevice.connectGatt(mContext, false, mDeviceConnectionListener);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/user1/devs/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:211: Error: Missing permissions required by BluetoothGatt.close: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt.close();
~~~~~~~~~~~~~
/home/user1/devs/groundsdk/packages/groundsdk-android/sdkcore/src/main/java/com/parrot/drone/sdkcore/arsdk/backend/ble/ArsdkBleConnection.java:239: Error: Missing permissions required by BluetoothGatt.writeDescriptor: android.permission.BLUETOOTH_CONNECT [MissingPermission]
mGatt.writeDescriptor(descriptor);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
With regards,
4km