SHARE
TWEET

Erro ao usar Music Controls

a guest Feb 15th, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [16:31:36]  lint finished in 4.15 s
  2. > cordova build android
  3. Android Studio project detected
  4. ANDROID_HOME=C:\Users\Gustavo\AppData\Local\Android\sdk
  5. JAVA_HOME=C:\Program Files\java\jdk1.8.0_171
  6. studio
  7. Subproject Path: CordovaLib
  8. Subproject Path: app
  9. publishNonDefault is deprecated and has no effect anymore. All variants are now published.
  10. The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
  11.         at build_319fu3cmct55slrlwijcr8muw.run(E:\xampp\htdocs\aplicativos\radio\platforms\android\app\build.gradle:148)
  12. Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
  13. :CordovaLib:preBuild UP-TO-DATE
  14. :CordovaLib:preDebugBuild UP-TO-DATE
  15. :CordovaLib:compileDebugAidl UP-TO-DATE
  16. :CordovaLib:compileDebugRenderscript UP-TO-DATE
  17. :CordovaLib:checkDebugManifest UP-TO-DATE
  18. :CordovaLib:generateDebugBuildConfig UP-TO-DATE
  19. :CordovaLib:prepareLintJar UP-TO-DATE
  20. :CordovaLib:generateDebugResValues UP-TO-DATE
  21. :CordovaLib:generateDebugResources UP-TO-DATE
  22. :CordovaLib:packageDebugResources UP-TO-DATE
  23. :CordovaLib:platformAttrExtractor UP-TO-DATE
  24. :CordovaLib:processDebugManifest UP-TO-DATE
  25. :CordovaLib:processDebugResources UP-TO-DATE
  26. :CordovaLib:generateDebugSources UP-TO-DATE
  27. :CordovaLib:javaPreCompileDebug UP-TO-DATE
  28. :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
  29. :CordovaLib:processDebugJavaRes NO-SOURCE
  30. :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
  31. :app:preBuild UP-TO-DATE
  32. :app:preDebugBuild UP-TO-DATE
  33. :app:compileDebugAidl UP-TO-DATE
  34. :CordovaLib:packageDebugRenderscript NO-SOURCE
  35. :app:compileDebugRenderscript UP-TO-DATE
  36. :app:checkDebugManifest UP-TO-DATE
  37. :app:generateDebugBuildConfig UP-TO-DATE
  38. :app:prepareLintJar UP-TO-DATE
  39. :app:generateDebugResValues UP-TO-DATE
  40. :app:generateDebugResources UP-TO-DATE
  41. :app:mergeDebugResources UP-TO-DATE
  42. :app:createDebugCompatibleScreenManifests UP-TO-DATE
  43. :app:processDebugManifest UP-TO-DATE
  44. :app:splitsDiscoveryTaskDebug UP-TO-DATE
  45. :app:processDebugResources UP-TO-DATE
  46. :app:generateDebugSources UP-TO-DATE
  47. :app:javaPreCompileDebug UP-TO-DATE
  48. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:5: error: package android.support.v4.media.session does not exist
  49. import android.support.v4.media.session.MediaSessionCompat;
  50.                                        ^
  51. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:10: error: package MediaSessionCompat does not exist
  52. public class MediaSessionCallback extends MediaSessionCompat.Callback {
  53.                                                             ^
  54. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:15: error: package android.support.v4.media does not exist
  55. import android.support.v4.media.MediaMetadataCompat;
  56.                                ^
  57. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:16: error: package android.support.v4.media.session does not exist
  58. import android.support.v4.media.session.MediaSessionCompat;
  59.                                        ^
  60. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:17: error: package android.support.v4.media.session does not exist
  61. import android.support.v4.media.session.PlaybackStateCompat;
  62.                                        ^
  63. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:45: error: cannot find symbol
  64.         private MediaSessionCompat mediaSessionCompat;
  65.                 ^
  66.   symbol:   class MediaSessionCompat
  67.   location: class MusicControls
  68. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:18: error: method does not override or implement a method from a supertype
  69.   @Override
  70.   ^
  71. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:20: error: cannot find symbol
  72.     super.onPlay();
  73.     ^
  74.   symbol:   variable super
  75.   location: class MediaSessionCallback
  76. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:27: error: method does not override or implement a method from a supertype
  77.   @Override
  78.   ^
  79. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:29: error: cannot find symbol
  80.     super.onPause();
  81.     ^
  82.   symbol:   variable super
  83.   location: class MediaSessionCallback
  84. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:36: error: method does not override or implement a method from a supertype
  85.   @Override
  86.   ^
  87. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:38: error: cannot find symbol
  88.     super.onSkipToNext();
  89.     ^
  90.   symbol:   variable super
  91.   location: class MediaSessionCallback
  92. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:45: error: method does not override or implement a method from a supertype
  93.   @Override
  94.   ^
  95. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:47: error: cannot find symbol
  96.     super.onSkipToPrevious();
  97.     ^
  98.   symbol:   variable super
  99.   location: class MediaSessionCallback
  100. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:54: error: method does not override or implement a method from a supertype
  101.   @Override
  102.   ^
  103. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:56: error: cannot find symbol
  104.     super.onPlayFromMediaId(mediaId, extras);
  105.     ^
  106.   symbol:   variable super
  107.   location: class MediaSessionCallback
  108. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:59: error: method does not override or implement a method from a supertype
  109.   @Override
  110.   ^
  111. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:64: error: cannot find symbol
  112.       return super.onMediaButtonEvent(mediaButtonIntent);
  113.              ^
  114.   symbol:   variable super
  115.   location: class MediaSessionCallback
  116. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:131: error: cannot find symbol
  117.           return super.onMediaButtonEvent(mediaButtonIntent);
  118.                  ^
  119.   symbol:   variable super
  120.   location: class MediaSessionCallback
  121. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:103: error: cannot find symbol
  122.                 this.mediaSessionCompat = new MediaSessionCompat(context, "cordova-music-controls-media-session", null, this.mediaButtonPendingIntent);
  123.                                               ^
  124.   symbol:   class MediaSessionCompat
  125.   location: class MusicControls
  126. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:104: error: cannot find symbol
  127.                 this.mediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS);
  128.                                                  ^
  129.   symbol:   variable MediaSessionCompat
  130.   location: class MusicControls
  131. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:104: error: cannot find symbol
  132.                 this.mediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS);
  133.                                                                                                  ^
  134.   symbol:   variable MediaSessionCompat
  135.   location: class MusicControls
  136. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:107: error: cannot find symbol
  137.                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  138.                                       ^
  139.   symbol:   variable PlaybackStateCompat
  140.   location: class MusicControls
  141. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:144: error: package MediaMetadataCompat does not exist
  142.                          final MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
  143.                                                   ^
  144. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:144: error: package MediaMetadataCompat does not exist
  145.                          final MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
  146.                                                                                                     ^
  147. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:152: error: cannot find symbol
  148.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, infos.track);
  149.                                                                   ^
  150.   symbol: variable MediaMetadataCompat
  151. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:154: error: cannot find symbol
  152.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, infos.artist);
  153.                                                                   ^
  154.   symbol: variable MediaMetadataCompat
  155. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:156: error: cannot find symbol
  156.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, infos.album);
  157.                                                                   ^
  158.   symbol: variable MediaMetadataCompat
  159. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:160: error: cannot find symbol
  160.                                                 metadataBuilder.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, art);
  161.                                                                           ^
  162.   symbol: variable MediaMetadataCompat
  163. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:161: error: cannot find symbol
  164.                                                 metadataBuilder.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, art);
  165.                                                                           ^
  166.   symbol: variable MediaMetadataCompat
  167. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:168: error: cannot find symbol
  168.                                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PLAYING);
  169.                                                                       ^
  170.   symbol: variable PlaybackStateCompat
  171. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:170: error: cannot find symbol
  172.                                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  173.                                                                       ^
  174.   symbol: variable PlaybackStateCompat
  175. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:182: error: cannot find symbol
  176.                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PLAYING);
  177.                                                       ^
  178.   symbol:   variable PlaybackStateCompat
  179.   location: class MusicControls
  180. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:184: error: cannot find symbol
  181.                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  182.                                                       ^
  183.   symbol:   variable PlaybackStateCompat
  184.   location: class MusicControls
  185. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:225: error: package PlaybackStateCompat does not exist
  186.                 PlaybackStateCompat.Builder playbackstateBuilder = new PlaybackStateCompat.Builder();
  187.                                    ^
  188. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:225: error: package PlaybackStateCompat does not exist
  189.                 PlaybackStateCompat.Builder playbackstateBuilder = new PlaybackStateCompat.Builder();
  190.                                                                                           ^
  191. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:226: error: cannot find symbol
  192.                 if( state == PlaybackStateCompat.STATE_PLAYING ) {
  193.                              ^
  194.   symbol:   variable PlaybackStateCompat
  195.   location: class MusicControls
  196. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  197.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  198.                                                         ^
  199.   symbol:   variable PlaybackStateCompat
  200.   location: class MusicControls
  201. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  202.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  203.                                                                                                 ^
  204.   symbol:   variable PlaybackStateCompat
  205.   location: class MusicControls
  206. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  207.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  208.                                                                                                                                    ^
  209.   symbol:   variable PlaybackStateCompat
  210.   location: class MusicControls
  211. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  212.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  213.                                                                                                                                                                              ^
  214.   symbol:   variable PlaybackStateCompat
  215.   location: class MusicControls
  216. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:228: error: cannot find symbol
  217.                                 PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID |
  218.                                 ^
  219.   symbol:   variable PlaybackStateCompat
  220.   location: class MusicControls
  221. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:229: error: cannot find symbol
  222.                                 PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH);
  223.                                 ^
  224.   symbol:   variable PlaybackStateCompat
  225.   location: class MusicControls
  226. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:230: error: cannot find symbol
  227.                         playbackstateBuilder.setState(state, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 1.0f);
  228.                                                              ^
  229.   symbol:   variable PlaybackStateCompat
  230.   location: class MusicControls
  231. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  232.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  233.                                                         ^
  234.   symbol:   variable PlaybackStateCompat
  235.   location: class MusicControls
  236. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  237.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  238.                                                                                                 ^
  239.   symbol:   variable PlaybackStateCompat
  240.   location: class MusicControls
  241. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  242.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  243.                                                                                                                                   ^
  244.   symbol:   variable PlaybackStateCompat
  245.   location: class MusicControls
  246. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  247.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  248.                                                                                                                                                                             ^
  249.   symbol:   variable PlaybackStateCompat
  250.   location: class MusicControls
  251. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:233: error: cannot find symbol
  252.                                 PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID |
  253.                                 ^
  254.   symbol:   variable PlaybackStateCompat
  255.   location: class MusicControls
  256. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:234: error: cannot find symbol
  257.                                 PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH);
  258.                                 ^
  259.   symbol:   variable PlaybackStateCompat
  260.   location: class MusicControls
  261. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:235: error: cannot find symbol
  262.                         playbackstateBuilder.setState(state, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 0);
  263.                                                              ^
  264. :app:compileDebugJavaWithJavac FAILED
  265. 27 actionable tasks: 1 executed, 26 up-to-date
  266.   symbol:   variable PlaybackStateCompat
  267.   location: class MusicControls
  268. Note: E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControlsNotification.java uses or overrides a deprecated API.
  269. Note: Recompile with -Xlint:deprecation for details.
  270. 51 errors
  271.  
  272. FAILURE: Build failed with an exception.
  273.  
  274. * What went wrong:
  275. Execution failed for task ':app:compileDebugJavaWithJavac'.
  276. > Compilation failed; see the compiler error output for details.
  277.  
  278. * Try:
  279. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  280.  
  281. * Get more help at https://help.gradle.org
  282.  
  283. BUILD FAILED in 2s
  284. cmd: Command failed with exit code 1 Error output:
  285. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:5: error: package android.support.v4.media.session does not exist
  286. import android.support.v4.media.session.MediaSessionCompat;
  287.                                        ^
  288. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:10: error: package MediaSessionCompat does not exist
  289. public class MediaSessionCallback extends MediaSessionCompat.Callback {
  290.                                                             ^
  291. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:15: error: package android.support.v4.media does not exist
  292. import android.support.v4.media.MediaMetadataCompat;
  293.                                ^
  294. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:16: error: package android.support.v4.media.session does not exist
  295. import android.support.v4.media.session.MediaSessionCompat;
  296.                                        ^
  297. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:17: error: package android.support.v4.media.session does not exist
  298. import android.support.v4.media.session.PlaybackStateCompat;
  299.                                        ^
  300. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:45: error: cannot find symbol
  301.         private MediaSessionCompat mediaSessionCompat;
  302.                 ^
  303.   symbol:   class MediaSessionCompat
  304.   location: class MusicControls
  305. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:18: error: method does not override or implement a method from a supertype
  306.   @Override
  307.   ^
  308. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:20: error: cannot find symbol
  309.     super.onPlay();
  310.     ^
  311.   symbol:   variable super
  312.   location: class MediaSessionCallback
  313. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:27: error: method does not override or implement a method from a supertype
  314.   @Override
  315.   ^
  316. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:29: error: cannot find symbol
  317.     super.onPause();
  318.     ^
  319.   symbol:   variable super
  320.   location: class MediaSessionCallback
  321. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:36: error: method does not override or implement a method from a supertype
  322.   @Override
  323.   ^
  324. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:38: error: cannot find symbol
  325.     super.onSkipToNext();
  326.     ^
  327.   symbol:   variable super
  328.   location: class MediaSessionCallback
  329. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:45: error: method does not override or implement a method from a supertype
  330.   @Override
  331.   ^
  332. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:47: error: cannot find symbol
  333.     super.onSkipToPrevious();
  334.     ^
  335.   symbol:   variable super
  336.   location: class MediaSessionCallback
  337. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:54: error: method does not override or implement a method from a supertype
  338.   @Override
  339.   ^
  340. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:56: error: cannot find symbol
  341.     super.onPlayFromMediaId(mediaId, extras);
  342.     ^
  343.   symbol:   variable super
  344.   location: class MediaSessionCallback
  345. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:59: error: method does not override or implement a method from a supertype
  346.   @Override
  347.   ^
  348. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:64: error: cannot find symbol
  349.       return super.onMediaButtonEvent(mediaButtonIntent);
  350.              ^
  351.   symbol:   variable super
  352.   location: class MediaSessionCallback
  353. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MediaSessionCallback.java:131: error: cannot find symbol
  354.           return super.onMediaButtonEvent(mediaButtonIntent);
  355.                  ^
  356.   symbol:   variable super
  357.   location: class MediaSessionCallback
  358. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:103: error: cannot find symbol
  359.                 this.mediaSessionCompat = new MediaSessionCompat(context, "cordova-music-controls-media-session", null, this.mediaButtonPendingIntent);
  360.                                               ^
  361.   symbol:   class MediaSessionCompat
  362.   location: class MusicControls
  363. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:104: error: cannot find symbol
  364.                 this.mediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS);
  365.                                                  ^
  366.   symbol:   variable MediaSessionCompat
  367.   location: class MusicControls
  368. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:104: error: cannot find symbol
  369.                 this.mediaSessionCompat.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS | MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS);
  370.                                                                                                  ^
  371.   symbol:   variable MediaSessionCompat
  372.   location: class MusicControls
  373. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:107: error: cannot find symbol
  374.                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  375.                                       ^
  376.   symbol:   variable PlaybackStateCompat
  377.   location: class MusicControls
  378. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:144: error: package MediaMetadataCompat does not exist
  379.                          final MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
  380.                                                   ^
  381. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:144: error: package MediaMetadataCompat does not exist
  382.                          final MediaMetadataCompat.Builder metadataBuilder = new MediaMetadataCompat.Builder();
  383.                                                                                                     ^
  384. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:152: error: cannot find symbol
  385.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, infos.track);
  386.                                                                   ^
  387.   symbol: variable MediaMetadataCompat
  388. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:154: error: cannot find symbol
  389.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, infos.artist);
  390.                                                                   ^
  391.   symbol: variable MediaMetadataCompat
  392. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:156: error: cannot find symbol
  393.                                         metadataBuilder.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, infos.album);
  394.                                                                   ^
  395.   symbol: variable MediaMetadataCompat
  396. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:160: error: cannot find symbol
  397.                                                 metadataBuilder.putBitmap(MediaMetadataCompat.METADATA_KEY_ALBUM_ART, art);
  398.                                                                           ^
  399.   symbol: variable MediaMetadataCompat
  400. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:161: error: cannot find symbol
  401.                                                 metadataBuilder.putBitmap(MediaMetadataCompat.METADATA_KEY_ART, art);
  402.                                                                           ^
  403.   symbol: variable MediaMetadataCompat
  404. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:168: error: cannot find symbol
  405.                                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PLAYING);
  406.                                                                       ^
  407.   symbol: variable PlaybackStateCompat
  408. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:170: error: cannot find symbol
  409.                                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  410.                                                                       ^
  411.   symbol: variable PlaybackStateCompat
  412. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:182: error: cannot find symbol
  413.                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PLAYING);
  414.                                                       ^
  415.   symbol:   variable PlaybackStateCompat
  416.   location: class MusicControls
  417. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:184: error: cannot find symbol
  418.                                 setMediaPlaybackState(PlaybackStateCompat.STATE_PAUSED);
  419.                                                       ^
  420.   symbol:   variable PlaybackStateCompat
  421.   location: class MusicControls
  422. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:225: error: package PlaybackStateCompat does not exist
  423.                 PlaybackStateCompat.Builder playbackstateBuilder = new PlaybackStateCompat.Builder();
  424.                                    ^
  425. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:225: error: package PlaybackStateCompat does not exist
  426.                 PlaybackStateCompat.Builder playbackstateBuilder = new PlaybackStateCompat.Builder();
  427.                                                                                           ^
  428. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:226: error: cannot find symbol
  429.                 if( state == PlaybackStateCompat.STATE_PLAYING ) {
  430.                              ^
  431.   symbol:   variable PlaybackStateCompat
  432.   location: class MusicControls
  433. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  434.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  435.                                                         ^
  436.   symbol:   variable PlaybackStateCompat
  437.   location: class MusicControls
  438. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  439.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  440.                                                                                                 ^
  441.   symbol:   variable PlaybackStateCompat
  442.   location: class MusicControls
  443. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  444.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  445.                                                                                                                                    ^
  446.   symbol:   variable PlaybackStateCompat
  447.   location: class MusicControls
  448. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:227: error: cannot find symbol
  449.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PAUSE | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  450.                                                                                                                                                                              ^
  451.   symbol:   variable PlaybackStateCompat
  452.   location: class MusicControls
  453. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:228: error: cannot find symbol
  454.                                 PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID |
  455.                                 ^
  456.   symbol:   variable PlaybackStateCompat
  457.   location: class MusicControls
  458. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:229: error: cannot find symbol
  459.                                 PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH);
  460.                                 ^
  461.   symbol:   variable PlaybackStateCompat
  462.   location: class MusicControls
  463. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:230: error: cannot find symbol
  464.                         playbackstateBuilder.setState(state, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 1.0f);
  465.                                                              ^
  466.   symbol:   variable PlaybackStateCompat
  467.   location: class MusicControls
  468. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  469.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  470.                                                         ^
  471.   symbol:   variable PlaybackStateCompat
  472.   location: class MusicControls
  473. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  474.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  475.                                                                                                 ^
  476.   symbol:   variable PlaybackStateCompat
  477.   location: class MusicControls
  478. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  479.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  480.                                                                                                                                   ^
  481.   symbol:   variable PlaybackStateCompat
  482.   location: class MusicControls
  483. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:232: error: cannot find symbol
  484.                         playbackstateBuilder.setActions(PlaybackStateCompat.ACTION_PLAY_PAUSE | PlaybackStateCompat.ACTION_PLAY | PlaybackStateCompat.ACTION_SKIP_TO_NEXT | PlaybackStateCompat.ACTION_SKIP_TO_PREVIOUS |
  485.                                                                                                                                                                             ^
  486.   symbol:   variable PlaybackStateCompat
  487.   location: class MusicControls
  488. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:233: error: cannot find symbol
  489.                                 PlaybackStateCompat.ACTION_PLAY_FROM_MEDIA_ID |
  490.                                 ^
  491.   symbol:   variable PlaybackStateCompat
  492.   location: class MusicControls
  493. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:234: error: cannot find symbol
  494.                                 PlaybackStateCompat.ACTION_PLAY_FROM_SEARCH);
  495.                                 ^
  496.   symbol:   variable PlaybackStateCompat
  497.   location: class MusicControls
  498. E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControls.java:235: error: cannot find symbol
  499.                         playbackstateBuilder.setState(state, PlaybackStateCompat.PLAYBACK_POSITION_UNKNOWN, 0);
  500.                                                              ^
  501.   symbol:   variable PlaybackStateCompat
  502.   location: class MusicControls
  503. Note: E:\xampp\htdocs\aplicativos\radio\platforms\android\app\src\main\java\com\homerours\musiccontrols\MusicControlsNotification.java uses or overrides a deprecated API.
  504. Note: Recompile with -Xlint:deprecation for details.
  505. 51 errors
  506.  
  507. FAILURE: Build failed with an exception.
  508.  
  509. * What went wrong:
  510. Execution failed for task ':app:compileDebugJavaWithJavac'.
  511. > Compilation failed; see the compiler error output for details.
  512.  
  513. * Try:
  514. Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  515.  
  516. * Get more help at https://help.gradle.org
  517.  
  518. BUILD FAILED in 2s
  519. [ERROR] An error occurred while running subprocess cordova.
  520.  
  521.         cordova build android exited with exit code 1.
  522.  
  523.         Re-running this command with the --verbose flag may provide more information.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top