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

Unable to compile on Fuse X #5

Open
mvondoyannick opened this issue Aug 6, 2021 · 0 comments
Open

Unable to compile on Fuse X #5

mvondoyannick opened this issue Aug 6, 2021 · 0 comments

Comments

@mvondoyannick
Copy link

Hi!
while trying to build the project, i have this issues
i thing we have to migrate to Android new artifact

> Task :app:compileDebugJavaWithJavac FAILED
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:8: error: package android.support.v7.app does not exist
import android.support.v7.app.NotificationCompat;
                             ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:18: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
                             ^
  symbol:   class NotificationManagerCompat
  location: package android.support.v4.app
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:20: error: cannot find symbol
import android.support.v4.media.session.MediaButtonReceiver;
                                       ^
  symbol:   class MediaButtonReceiver
  location: package android.support.v4.media.session
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:156: error: package NotificationCompat does not exist
    public NotificationCompat.Action generateAction(int icon, String title, int mediaKeyEvent)
                             ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\MediaStyleHelper.java:10: error: package android.support.v7.app does not exist
import android.support.v7.app.NotificationCompat;
                             ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\MediaStyleHelper.java:26: error: package NotificationCompat does not exist
    public static NotificationCompat.Builder makeBuilder(Context context, MediaSessionCompat mediaSession)
                                    ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:395: error: cannot find symbol
        NotificationManagerCompat.from(this).cancel(ArtworkMediaNotification.ID);
        ^
  symbol:   variable NotificationManagerCompat
  location: class StreamingAudioService
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:497: error: cannot find symbol
            mediaButtonIntent.setClass(this, MediaButtonReceiver.class);
                                             ^
  symbol:   class MediaButtonReceiver
  location: class StreamingAudioService
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:519: error: cannot find symbol
        NotificationManagerCompat.from(this).cancel(ArtworkMediaNotification.ID);
        ^
  symbol:   variable NotificationManagerCompat
  location: class StreamingAudioService
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\StreamingAudioService.java:788: error: cannot find symbol
        MediaButtonReceiver.handleIntent(_session, intent);
        ^
  symbol:   variable MediaButtonReceiver
  location: class StreamingAudioService
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:129: error: package NotificationCompat does not exist
        NotificationCompat.Builder builder = MediaStyleHelper.makeBuilder(_service, _session);
                          ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:137: error: package NotificationCompat does not exist
        NotificationCompat.MediaStyle style = new NotificationCompat.MediaStyle().setMediaSession(_session.getSessionToken());
                          ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:137: error: package NotificationCompat does not exist
        NotificationCompat.MediaStyle style = new NotificationCompat.MediaStyle().setMediaSession(_session.getSessionToken());
                                                                    ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\ArtworkMediaNotification.java:159: error: package NotificationCompat does not exist
        return new NotificationCompat.Action(icon, title, MediaStyleHelper.getActionIntent(_service, mediaKeyEvent));
                                     ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\MediaStyleHelper.java:32: error: package NotificationCompat does not exist
        NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
                          ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\MediaStyleHelper.java:32: error: package NotificationCompat does not exist
        NotificationCompat.Builder builder = new NotificationCompat.Builder(context);
                                                                   ^
C:\Users\Dell\OneDrive_\Documents\Fuse X\AudioPlayer\build\android\preview\app\src\main\java\com\fuse\StreamingPlayer\MediaStyleHelper.java:40: error: cannot find symbol
                .setVisibility(NotificationCompat.VISIBILITY_PUBLIC);
                               ^
  symbol:   variable NotificationCompat
  location: class MediaStyleHelper
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
17 errors
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