-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi, I am getting this error while trying to build a Flutter app for android, using quickblox_sdk: 0.16.4
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/notification/NotificationModule.java:16: error: cannot find symbol
import com.quickblox.quickblox_sdk.BuildConfig;
^
symbol: class BuildConfig
location: package com.quickblox.quickblox_sdk
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/push/PushModule.java:14: error: cannot find symbol
import com.quickblox.quickblox_sdk.BuildConfig;
^
symbol: class BuildConfig
location: package com.quickblox.quickblox_sdk
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/webrtc/call_manager/CallManager.java:6: error: cannot find symbol
import com.quickblox.quickblox_sdk.BuildConfig;
^
symbol: class BuildConfig
location: package com.quickblox.quickblox_sdk
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/notification/NotificationModule.java:114: error: cannot find symbol
if (BuildConfig.DEBUG) {
^
symbol: variable BuildConfig
location: class NotificationModule
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/notification/NotificationModule.java:229: error: cannot find symbol
if (BuildConfig.DEBUG) {
^
symbol: variable BuildConfig
location: class NotificationModule
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/push/PushModule.java:84: error: cannot find symbol
if (BuildConfig.DEBUG) {
^
symbol: variable BuildConfig
location: class PushModule
/Users/esteban/.pub-cache/hosted/pub.dev/quickblox_sdk-0.16.4/android/src/main/java/com/quickblox/quickblox_sdk/webrtc/call_manager/CallManager.java:63: error: cannot find symbol
if (BuildConfig.DEBUG) {
^
symbol: variable BuildConfig
location: class CallManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
7 errors
3 warnings
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':quickblox_sdk:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.
Troubleshooting got me to a missing block in your android/build.gradle
file. It's missing the following setting
android {
...
buildFeatures {
buildConfig true
}
}
Adding this config fixes the problem.
I have tried but couldn't navigate your repositories to create a PR myself. So I leave the task here
Thank you for your time
Metadata
Metadata
Assignees
Labels
No labels