Skip to content
This repository has been archived by the owner on Nov 22, 2020. It is now read-only.

Plugin fails to build everytime. Tried "flutter clean" and some other steps, but didn't help.(I've marked the log for same in bold, rest of the jettifier log is from another package which passes everytime) #12

Open
gauravxdhingra opened this issue Apr 19, 2020 · 0 comments

Comments

@gauravxdhingra
Copy link

Launching lib\main.dart on Redmi Note 7 Pro in debug mode...
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:8: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:9: error: package android.support.v4.content does not exist
import android.support.v4.content.ContextCompat;
^
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:10: error: package android.support.v7.app does not exist
import android.support.v7.app.AppCompatActivity;
^
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:15: error: cannot find symbol
public static boolean hasExternalStorageAccess(AppCompatActivity activity) {
^
symbol: class AppCompatActivity
location: class MusicHelper
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:16: error: cannot find symbol
if(ContextCompat.checkSelfPermission(activity, Manifest.permission.READ_EXTERNAL_STORAGE)
^
symbol: variable ContextCompat
location: class MusicHelper
C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicHelper.java:19: error: cannot find symbol
ActivityCompat.requestPermissions(activity,
^
symbol: variable ActivityCompat
location: class MusicHelper
Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicFinderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter.pub-cache\hosted\pub.dartlang.org\flute_music_player-0.0.6\android\src\main\java\com\mtechviral\musicfinder\MusicFinderPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
6 errors
FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flute_music_player:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 4s
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the incompatibility.
Building plugin flute_music_player...
√ Built build\app\outputs\repo.
Building plugin flutter_keyboard_visibility...
√ Built build\app\outputs\repo.
Building plugin flutter_media_notification...
The plugin flutter_media_notification could not be built due to the issue above.
Exited (sigterm)

@gauravxdhingra gauravxdhingra changed the title Plugin fails to build everytime. Tried "flutter clean" and some other steps, but didn't help Plugin fails to build everytime. Tried "flutter clean" and some other steps, but didn't help.(I've marked the log for same in bold, rest of the jettifier log is from another package which passes everytime) Apr 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant