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

Issue in including this package #1

Open
vishant-jaiswal opened this issue Jul 16, 2018 · 2 comments
Open

Issue in including this package #1

vishant-jaiswal opened this issue Jul 16, 2018 · 2 comments

Comments

@vishant-jaiswal
Copy link

vishant-jaiswal commented Jul 16, 2018

getting this error while building

D:\School\flutter\animated_list_sample\android\app\src\main\java\io\flutter\plugins\GeneratedPluginRegistrant.java:14: error: cannot find symbol
PhoneLogPlugin.registerWith(registry.registrarFor("com.example.phonelog.PhoneLogPlugin"));
^
symbol: variable PhoneLogPlugin
location: class GeneratedPluginRegistrant

@jiajiabingcheng
Copy link
Owner

Did you open the phone_log-master/example/android module as a top-level project in Android Studio, where example is the example app generated with the plugin?

@vishant-jaiswal
Copy link
Author

NO i m including phone_log: "^0.0.2" in a pubspec.yaml of new project and just added this function

void getCallLogs() async {
    bool ifPermission = await PhoneLog.checkPermission();

    print("ifPermission: $ifPermission");

    if (ifPermission) {
      var callLogs = await PhoneLog.getPhoneLogs();
      setState(() {
        _callRecords = callLogs;
        print(_callRecords[0].number);
      });
    }
  }

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

2 participants