https://www.growthbook.io/ logo
#sdk-flutter
Title
# sdk-flutter
c

cool-apple-97384

05/24/2023, 5:43 AM
Hi @gifted-cat-24658 sorry for mention directly, we got an error like this when we use growthbook sdk version 1.1.2. This crash just happen on Android version 6 and 7. Can you give us suggestion how to solve this issue?
Copy code
E/flutter (11272): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: LateInitializationError: Field 'data' has not been initialized.
E/flutter (11272): #0      FeatureDataSource.data (package:growthbook_sdk_flutter/src/Features/feature_data_source.dart)
feature_data_source.dart:1
E/flutter (11272): #1      FeatureDataSource.setUpModel
feature_data_source.dart:31
E/flutter (11272): #2      FeatureDataSource.fetchFeatures
feature_data_source.dart:17
E/flutter (11272): <asynchronous suspension>
E/flutter (11272): #3      FeatureViewModel.fetchFeature
features_view_model.dart:14
E/flutter (11272): <asynchronous suspension>
E/flutter (11272): #4      GrowthBookSDK.refresh
growth_book_sdk.dart:131
E/flutter (11272): <asynchronous suspension>
E/flutter (11272):
g

gifted-cat-24658

05/24/2023, 5:47 AM
@cool-apple-97384 it’s not related to any android version, but it’s related to the failure of the data layer. If data layer fails to fetch feature from cdn then it might throw this kinda error. It’s been addressed in recent release. Check this issue on repo. And update the version to latest. Which is 2.1.0+0
c

cool-apple-97384

05/24/2023, 5:49 AM
I see @gifted-cat-24658. So, this issue just fixed on latest version?
Solved with custom client
15 Views