Open Raz4492 opened 6 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.
@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:
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
flutter create vanilla
cd vanilla
pubspec.yaml
as described in the developer portal using version ^1.5.0
(intentionally not reproducing the contents here since they contain credentials)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
@dbravender-snappy these two seem odd, have you tried compiling our sample app?
Can you please share the integration process for socket developer?
@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
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.
@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
...
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'.