Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FLAVOR in BuildConfig error: cannot find symbol when uses SDK 29 (Android 10) #43

Open
adelmojunnior opened this issue Oct 9, 2020 · 0 comments

Comments

@adelmojunnior
Copy link
Collaborator

[cordova]  > Task :app:compileDebugJavaWithJavac
[cordova]  /Users/adelmo.freitas/workspaces/serpro/irpf-online/frontend/platforms/android/app/src/main/java/br/com/mfdeveloper/cordova/NativeView.java:251: error: cannot find symbol
[cordova]                      if (BuildConfig.FLAVOR == null || BuildConfig.FLAVOR.length() == 0) {
[cordova]                                     ^
[cordova]    symbol:   variable FLAVOR
[cordova]    location: class BuildConfig
[cordova]  /Users/adelmo.freitas/workspaces/serpro/irpf-online/frontend/platforms/android/app/src/main/java/br/com/mfdeveloper/cordova/NativeView.java:251: error: cannot find symbol
[cordova]                      if (BuildConfig.FLAVOR == null || BuildConfig.FLAVOR.length() == 0) {
[cordova]                                                                   ^
[cordova]    symbol:   variable FLAVOR
[cordova]    location: class BuildConfig
[cordova]  /Users/adelmo.freitas/workspaces/serpro/irpf-online/frontend/platforms/android/app/src/main/java/br/com/mfdeveloper/cordova/NativeView.java:270: error: cannot find symbol
[cordova]          callbackContext.success(BuildConfig.FLAVOR);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant