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

package installed but at run time getting error Plugin project :capturesdk_flutter not found. Please update settings.gradle. #9

Closed
Raz4492 opened this issue May 7, 2024 · 9 comments

Comments

@Raz4492
Copy link

Raz4492 commented May 7, 2024

package integrate error:

Plugin project :capturesdk_flutter not found. Please update settings.gradle.

FAILURE: Build failed with an exception.

  • Where:
    Build file 'D:\CaptainChef_pos\android\build.gradle' line: 26

  • What went wrong:
    A problem occurred evaluating root project 'android'.

A problem occurred configuring project ':app'.
Cannot invoke method afterEvaluate() on null object

@socketPM
Copy link

socketPM commented May 7, 2024

@Raz4492 we moved the latest version to be only accessible through Socket Mobile developer account due to a 3rd party agreement. Please try that version by logging on to Socket Mobile developer portal and see if you are still getting the same error (installation instruction will be found there too). We are not likely to retrofit an older version if there's anything wrong. Thanks.

@dbravender-snappy
Copy link

@socketPM We're getting the same error following the steps on the developer portal. I get the build error in a fresh Flutter test project with the following steps:

  1. flutter --version outputs:
    Flutter 3.19.6 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision 54e66469a9 (3 weeks ago) • 2024-04-17 13:08:03 -0700
    Engine • revision c4cd48e186
    Tools • Dart 3.3.4 • DevTools 2.31.1
    
  2. flutter create vanilla
  3. cd vanilla
  4. Edit pubspec.yaml as described in the developer portal using version ^1.5.0 (intentionally not reproducing the contents here since they contain credentials)
  5. flutter build apk

Output:

Plugin project :capturesdk_flutter not found. Please update settings.gradle.

FAILURE: Build failed with an exception.

* Where:
Build file '[REDACTED]/vanilla/android/build.gradle' line: 13

* What went wrong:
A problem occurred evaluating root project 'android'.
> A problem occurred configuring project ':app'.
   > Cannot invoke method afterEvaluate() on null object

* 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

@socketPM
Copy link

socketPM commented May 8, 2024

@dbravender-snappy these two seem odd, have you tried compiling our sample app?
image

@Raz4492
Copy link
Author

Raz4492 commented May 8, 2024

Can you please share the integration process for socket developer?

@socketPM
Copy link

socketPM commented May 8, 2024

@Raz4492 Just in case you haven't gone through the documentation, you can find it here: https://docs.socketmobile.com/captureflutter/en/latest/gettingStarted.html#sdk-installation

@dbravender-snappy
Copy link

have you tried compiling our sample app?

Yes, I think the difference might be the Flutter version. I can't get it to compile using Flutter 3.19.6.

@socketPM
Copy link

socketPM commented May 15, 2024

@dbravender-snappy Please try the following first and see if it works? And for followup discussions, let's move to developers[at]socketmobile.com.

dependencies:
  flutter:
    sdk: flutter

  ...
   capturesdk_flutter:
    git:
      url: https://oauth2:[email protected]/capture/flutter-capturesdk.git
      version: ^1.5.11
  ...

@cyrille-socket
Copy link
Collaborator

Our new version 1.5.41 of the Flutter CaptureSDK is back on Github so you don't need the personal access token anymore and you can use directly the package as this in your pubspec.yaml:

dependencies:
flutter:
sdk: flutter

...
capturesdk_flutter: ^1.5.41
...

Let us know if that works for you now

@cyrille-socket
Copy link
Collaborator

Closed as there's no activity on this thread.

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

4 participants