-
Notifications
You must be signed in to change notification settings - Fork 564
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
When buiild generate Apk error: cannot find symbol android.app.NotificationChannel #227
Comments
I have the same issue? @mauron85 can i help you? |
Which version of Android SDK is used in the project? |
Check your sdk version. |
My comment is also true for gradle3. |
Update your project to skeleton example mentioned in that thread i’ve linked, because I’ve doubts that gradle3 will work with latest android sdks |
have the same issue
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions. |
Your Environment
Context
node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:4: error: cannot find symbol
import android.app.NotificationChannel;
Details :
symbol: class NotificationChannel
location: package android.app
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:86: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: variable IMPORTANCE_DEFAULT
location: class NotificationManager
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:96: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
C:\Project\ReactN\vanchuyen\node_modules\react-native-mauron85-background-geolocation\android\common\src\oreo\java\com\marianhello\bgloc\NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
Expected Behavior
Actual Behavior
Possible Fix
Steps to Reproduce
Context
I build app then it's not working as debug. Debug it still working. I can't test on many device
(Sorry, english my bad.)
Debug logs
The text was updated successfully, but these errors were encountered: