SocketMobile / capturesdk_flutter

Public snapshot for flutter sdk
MIT License
3 stars 1 forks source link

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

Open Raz4492 opened 4 months ago

Raz4492 commented 4 months ago

package integrate error:

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

FAILURE: Build failed with an exception.

socketPM commented 4 months ago

@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 commented 4 months ago

@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 commented 4 months ago

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

Raz4492 commented 4 months ago

Can you please share the integration process for socket developer?

socketPM commented 4 months ago

@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 commented 4 months ago

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 commented 4 months ago

@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:personal-access-token-on-developer-portal@sdk.socketmobile.com/capture/flutter-capturesdk.git
      version: ^1.5.11
  ...