In flutter 1.22 it was working good but when I upgraded my flutter project to 2.0 its giving me some error while flutter run
My dependence:
dependencies:
flutter:
sdk: flutter
keyboard_avoider: #Already UP TO DATE update checked on 28/12/2020
http: #Already UP TO DATE update checked on 28/12/2020
connectivity: #old- 0.4.9+5 UP TO DATE update checked on 28/12/2020
html: #already UP TO DATE update checked on 28/12/2020
string_validator: #already UP TO DATE update checked on 28/12/2020
shared_preferences: #old-0.5.12+2 UP TO DATE update checked on 28/12/2020
simple_animations: #old-1.3.3 UP TO DATE update checked on 28/12/2020 for toast animation
progress_dialog: # already UP TO DATE update checked on 28/12/2020 for progress dialog can also use for show download contain percentage,update
device_info: #old-0.4.2+9 UP TO DATE update checked on 28/12/2020
package_info: #old-0.4.3 UP TO DATE update checked on 28/12/2020
timeago: #old-2.0.29 UP TO DATE update checked on 28/12/2020
date_format: #already UP TO DATE update checked on 28/12/2020
datetime_picker_formfield: #already UP TO DATE update checked on 28/12/2020
intl: #already UP TO DATE update checked on 28/12/2020
flutter_multiselect: #already UP TO DATE update checked on 28/12/2020
flutter_local_notifications: #already UP TO DATE update checked on 28/12/2020
flutter_picker: #already UP TO DATE update checked on 28/12/2020
f_logs: #old-1.3.0-alpha-01 UP TO DATE update checked on 28/12/2020
image_picker: #old-^0.6.5-alpha-01 UP TO DATE update checked on 28/12/2020
image_cropper: #already UP TO DATE update checked on 28/12/2020
flutter_uploader: #old-^1.2.0 UP TO DATE update checked on 28/12/2020
flutter_downloader: #old-^1.4.1 UP TO DATE update checked on 28/12/2020
provider: #old-^3.1.0+1 UP TO DATE update checked on 28/12/2020
flutter_email_sender: #old-^3.0.1 UP TO DATE update checked on 28/12/2020
path_provider: #^2.0.1 #^1.6.24 #old-^1.6.7 UP TO DATE update checked on 28/12/2020
flutter_full_pdf_viewer: #already UP TO DATE update checked on 28/12/2020
flutter_archive: #old-1.0.2 UP TO DATE update checked on 28/12/2020
webview_flutter: #old-0.3.14 UP TO DATE update checked on 28/12/2020
platform_action_sheet: #already UP TO DATE update checked on 28/12/2020
get_it: #old- UP TO DATE update checked on 28/12/2020
url_launcher: #6.0.2 #old- 5.0.3 UP TO DATE update checked on 28/12/2020
filesize: #already UP TO DATE update checked on 28/12/2020
contacts_service: #old- 0.3.10 UP TO DATE update checked on 28/12/2020
permission_handler: #old-4.0.0 UP TO DATE update checked on 28/12/2020
photo_view: #old-0.9.2 UP TO DATE update checked on 28/12/2020
flutter_share: #old- 1.0.2+1 UP TO DATE update checked on 28/12/2020
cached_network_image: #old- 2.3.3 UP TO DATE update checked on 28/12/2020
flutter_cache_manager: #old-2.0.0 UP TO DATE update checked on 28/12/2020
flushbar: #old- 1.10.4 UP TO DATE update checked on 28/12/2020
get: #old- 2.13.0 UP TO DATE update checked on 28/12/2020
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: #old-0.1.2 UP TO DATE update checked on 28/12/2020
material_design_icons_flutter: #old-3.4.5045 UP TO DATE update checked on 29/12/2020
firebase_messaging: #^6.0.16 #6.0.16 alternate version
firebase_analytics: #old-6.3.0 UP TO DATE update checked on 29/12/2020
firebase_crashlytics: #^1.0.0 #old-0.1.3+3 UP TO DATE update checked on 29/12/2020
firebase_auth: #^1.0.1 #^0.16.1 #old-0.18.4+1 UP TO DATE update checked on 29/12/2020
firebase_core: #^1.0.1 #^0.4.4 #0.5.3
google_sign_in: #old-4.5.1 UP TO DATE update checked on 29/12/2020
pull_to_refresh:
shimmer:
archive: #already UP TO DATE update checked on 29/12/2020
flutter_slidable: #already UP TO DATE update checked on 29/12/2020
flutter_launcher_icons:
file_picker: #old-1.9.0 UP TO DATE update checked on 29/12/2020
percent_indicator: #old-2.1.7+4 UP TO DATE update checked on 29/12/2020
flutter_section_table_view: #already UP TO DATE update checked on 29/12/2020
international_phone_input: #already UP TO DATE update checked on 29/12/2020for formating mobile number
firebase_dynamic_links: #old- 0.6.3 UP TO DATE update checked on 29/12/2020 #for creating dynamic link
intl_phone_number_input: #old-0.4.6+2 UP TO DATE update checked on 29/12/2020 #for international number input
flutter_open_whatsapp: #already UP TO DATE update checked on 29/12/2020
Error
Running Xcode build...
Xcode build done. 29.3s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:80:42: error:
incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:573:
75: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:87:42: error:
incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:573:
75: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:96:42: error:
incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:573:
75: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:109:21:
warning: 'fetchProvidersForEmail:completion:' is deprecated: Please use fetchSignInMethodsForEmail:completion: for Objective-C or
fetchSignInMethods(forEmail:completion:) for Swift instead. [-Wdeprecated-declarations]
[[FIRAuth auth] fetchProvidersForEmail:email
^
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:398:
5: note: 'fetchProvidersForEmail:completion:' has been explicitly marked deprecated here
DEPRECATED_MSG_ATTRIBUTE("Please use fetchSignInMethodsForEmail:completion: for Objective-C or "
^
In module 'UIKit' imported from /Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Target Support
Files/firebase_auth/firebase_auth-prefix.pch:2:
In module 'Foundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frame
works/UIKit.framework/Headers/UIKit.h:8:
In module 'CoreFoundation' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frame
works/Foundation.framework/Headers/Foundation.h:6:
In module 'Darwin' imported from
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/System/Library/Frame
works/CoreFoundation.framework/Headers/CoreFoundation.h:16:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.1.sdk/usr/include/Availabi
lityMacros.h:181:64: note: expanded from macro 'DEPRECATED_MSG_ATTRIBUTE'
#define DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:160:52:
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h:401:
73: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:169:52:
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h:401:
73: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:176:52:
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h:401:
73: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:185:52:
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRUser.h:401:
73: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:276:42:
error: incompatible block pointer types sending 'void (^)(FIRUser *__strong, NSError *__strong)' to parameter of type 'void (^
_Nullable)(FIRAuthDataResult * _Nullable __strong, NSError * _Nullable __strong)'
completion:^(FIRUser *user, NSError *error) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In module 'FirebaseAuth' imported from
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/Headers/Public/Firebase/Firebase.h:30:
/Users/siddhant/Siddhant_WorkSpace/Speridian_Work/TC_Latest/ios/Pods/FirebaseAuth/FirebaseAuth/Sources/Public/FirebaseAuth/FIRAuth.h:573:
75: note: passing argument to parameter 'completion' here
NSError *_Nullable error))completion;
^
/Users/siddhant/Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.6.2+1/ios/Classes/FirebaseAuthPlugin.m:300:62:
warning: implicit conversion loses integer precision: 'long' to 'int' [-Wshorten-64-to-32]
userData[#"lastSignInTimestamp"] = [NSNumber numberWithInt:lastSignInDate];
~ ^~~~~~~~~~~~~~
2 warnings and 8 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro Max.
I have tried deleting the podFile, Podlock, Pod and .symlinks. Have even upgrade the cocapods. ran flutter doctor also its giving me all ticks. Any suggestion pls let me know thanks for the help in advance.
Rollback to 1.22 and wait stable version on Flutter 2.
Flutter 2 introduce Null Safety which can cause issues on Flutter 1.22 based projects.
Please use firebase related all version compatible. if you use firebase_auth: ^0.20.0+1 then firebase_dynamic_links: ^0.7.0+1 firebase_messaging: ^8.0.0-dev.12 firebase_storage: ^7.0.0 firebase_core : ^0.7.0
Related
/E:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/method_channel_firestore.dart:112:15: Error: Method not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(
^^^^^^^^^^^^^^^^^^^
/E:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Method not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(exception, stackTrace);
^^^^^^^^^^^^^^^^^^^
/E:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/utils/exception.dart:17:9: Error: Method not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(
^^^^^^^^^^^^^^^^^^^
/E:/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_platform_interface-5.5.0/lib/src/method_channel/utils/exception.dart:12:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
Never convertPlatformException(Object exception, StackTrace stackTrace) {
^
import
import 'package:cloud_firestore/cloud_firestore.dart';
code
void getData() async {
CollectionReference userRef = FirebaseFirestore.instance.collection("user");
}
pubspec.yaml
environment:
sdk: ">=2.13.4 <3.0.0"
dependencies:
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
firebase_auth: ^2.0.0
firebase_core:
firebase_messaging_platform_interface: ^3.1.1
cloud_firestore: ^3.1.1
cloud_firestore_platform_interface: ^5.1.1
from
cloud_firestore: ^3.1.1
to
cloud_firestore: ^1.0.1
Just updated Windows and my app won't compile. A file called AtomicRestult seems to be the problem, I have never heard of this file.
The error message that appears is below:
e: C:\UsersAppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (87, 2): Missing '}
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (29, 9): Class 'AtomicResult' is not abstract and does not implement abstract member public abstract fun success(p0: Any?): Unit defined in io.flutter.plugin.common.MethodChannel.Result
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (46, 5): 'success' overrides nothing
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (47, 9): Unresolved reference: scope
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (50, 37): Unresolved reference: operation
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (55, 13): Unresolved reference: result
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (59, 5): 'error' overrides nothing
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (60, 9): Unresolved reference: scope
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (63, 37): Unresolved reference: operation
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (71, 13): Unresolved reference: result
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (75, 5): 'notImplemented' overrides nothing
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (76, 9): Unresolved reference: scope
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (79, 37): Unresolved reference: operation
e: C:\Users\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\amplify_core-0.2.10\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (84, 13): Unresolved reference: result
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':amplify_core:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
> Compilation error. See log for more details
* 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
BUILD FAILED in 5s
Exception: Gradle task assembleDebug failed with exit code 1
The AtomicResult file is below:
package com.amazonaws.amplify.amplify_core
import io.flutter.Log
import io.flutter.plugin.common.MethodChannel
import kotlinx.coroutines.*
import java.util.concurrent.atomic.AtomicBoolean
/**
* Thread-safe [MethodChannel.Result] wrapper which prevents multiple replies and automatically posts
* results to the main thread.
*/
class AtomicResult(private val result: MethodChannel.Result, private val operation: String?) :
MethodChannel.Result {
private companion object {
class AtomicResult(private val result: MethodChannel.Result, private val operation: String?) :
MethodChannel.Result {
private companion object {
/**
* Scope for performing result handling.
* Method channel results must be sent on the main (UI) thread.
*/
val scope = MainScope()
}
val scope = MainScope()
}
/**
* Whether a response has been sent.
*/
private val isSent = AtomicBoolean(false)
override fun success(value: Any?) {
scope.launch {
if (isSent.getAndSet(true)) {
Log.w(
"AtomicResult(${operation})",
"Attempted to send success value after initial reply"
)
return#launch
}
result.success(value)
}
}
override fun error(errorCode: String?, errorMessage: String?, errorDetails: Any?) {
scope.launch {
if (isSent.getAndSet(true)) {
Log.w(
"AtomicResult(${operation})",
"""
Attempted to send error value after initial reply:
| PlatformException{code=${errorCode}, message=${errorMessage}, details=${errorDetails}}
""".trimMargin()
)
return#launch
}
result.error(errorCode, errorMessage, errorDetails)
}
}
override fun notImplemented() {
scope.launch {
if (isSent.getAndSet(true)) {
Log.w(
"AtomicResult(${operation})",
"Attempted to send notImplemented value after initial reply"
)
return#launch
}
result.notImplemented()
}
}
}
I have no idea what this file does and not sure what could possibly be wrong. I suspect that it could be the code but can't be too sure.
The below is a response to a suggestion.
I updated amplify core and I get the error message below:
Because no versions of amplify_auth_cognito match >0.2.10 <0.3.0 and amplify_auth_cognito >=0.2.0 <0.2.1 depends on amplify_core 0.2.0, amplify_auth_cognito >=0.2.0 <0.2.1-∞ or >0.2.10 <0.3.0 requires amplify_core 0.2.0.
And because amplify_auth_cognito >=0.2.1 <0.2.2 depends on amplify_core 0.2.1 and amplify_auth_cognito >=0.2.2 <0.2.3 depends on amplify_core 0.2.2, amplify_auth_cognito >=0.2.0 <0.2.3-∞ or >0.2.10 <0.3.0 requires amplify_core 0.2.0 or 0.2.1 or 0.2.2.
And because amplify_auth_cognito >=0.2.3 <0.2.4 depends on amplify_core 0.2.3 and amplify_auth_cognito >=0.2.4 <0.2.5 depends on amplify_core 0.2.4, amplify_auth_cognito >=0.2.0 <0.2.5-∞ or >0.2.10 <0.3.0 requires amplify_core 0.2.0 or 0.2.1 or 0.2.2 or 0.2.3 or 0.2.4.
And because amplify_auth_cognito >=0.2.5 <0.2.6 depends on amplify_core 0.2.5 and amplify_auth_cognito >=0.2.6 <0.2.7 depends on amplify_core 0.2.6, amplify_auth_cognito >=0.2.0 <0.2.7-∞ or >0.2.10 <0.3.0 requires amplify_core 0.2.0 or 0.2.1 or 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6.
And because amplify_auth_cognito >=0.2.7 <0.2.8 depends on amplify_core 0.2.7 and amplify_auth_cognito >=0.2.8 <0.2.9 depends on amplify_core 0.2.8, amplify_auth_cognito >=0.2.0 <0.2.9-∞ or >0.2.10 <0.3.0 requires amplify_core 0.2.0 or 0.2.1 or 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7 or 0.2.8.
And because amplify_auth_cognito >=0.2.9 <0.2.10 depends on amplify_core 0.2.9 and amplify_auth_cognito 0.2.10 depends on amplify_core 0.2.10, amplify_auth_cognito ^0.2.0 requires amplify_core 0.2.0 or 0.2.1 or 0.2.2 or 0.2.3 or 0.2.4 or 0.2.5 or 0.2.6 or 0.2.7 or 0.2.8 or 0.2.9 or 0.2.10.
So, because newday depends on both amplify_auth_cognito ^0.2.0 and amplify_core ^0.6.6, version solving failed.
pub get failed (1; So, because newday depends on both amplify_auth_cognito ^0.2.0 and amplify_core ^0.6.6, version solving failed.)
Below are my dependencies
dependencies:
flutter:
sdk: flutter
rxdart: ^0.27.5
provider: ^6.0.3
amplify_flutter: <1.0.0 #1.0.0
amplify_auth_cognito: ^0.2.0 #0.2.0
hooks_riverpod: ^1.0.3
flutter_hooks: ^0.18.2
riverpod: ^1.0.3
curved_navigation_bar: ^1.0.3
just_audio:
amplify_core: ^0.6.6
video_player: ^2.3.0
page_transition: ^2.0.5
flash_card: ^0.0.7
community_material_icon: ^5.9.55
flutter_swipable: ^1.2.1
The error is being generated from a package you are using. The version of the package is quite old and you need to update it.
Update amplify_core package in pubspec.yaml file
amplify_core: ^0.6.6
I am running into a problem when trying to build my Flutter app. I am using VS Code and the latest versions of Flutter and Dart. I think I have a problem with dependencies, but not sure. I have the following dependencies in my pubspec.yaml file:
http: ^0.13.4
youtube_player_flutter: ^8.0.0
percent_indicator: ^3.4.0
endless: ^1.6.0
flutter_staggered_grid_view: ^0.6.1
transparent_image:
accordion: ^2.2.3
like_button: ^2.0.4
easy_firebase_auth: ^3.2.0
flutter_inappwebview: ^5.4.3+7
webview_flutter: ^3.0.4
firebase_core: ^1.6.0
cloud_firestore: ^2.5.1
url_launcher: ^6.1.2
geocoding: ^2.0.4
sign_in_with_apple: ^3.3.0
I run into a problem when I do a flutter build. I get the following error messages:
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of
plug-in com.apple.dt.IDEWatchSupportCore
2022-05-17 01:32:19.580 xcodebuild[26038:192413] Requested but did not find extension point with identifier
Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension
Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
** BUILD FAILED **
Xcode's output:
↳
Writing result bundle at path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:22:18: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
if (self.addressDictionary != nil) {
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:29: warning: 'addressDictionary' is deprecated: first deprecated in iOS 11.0 - Use
#properties [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'CoreLocation' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.h:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: property 'addressDictionary' is declared
deprecated here
#property (nonatomic, readonly, copy, nullable) NSDictionary *addressDictionary API_DEPRECATED("Use #properties",
macos(10.8, 10.13), ios(5.0, 11.0), watchos(1.0, 4.0));
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/CoreLocation.framework/Headers/CLPlacemark.h:73:63: note: 'addressDictionary' has been explicitly
marked deprecated here
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:23:73: warning: 'kABPersonAddressStreetKey' is deprecated: first deprecated in iOS 9.0 - use
CNPostalAddress.street [-Wdeprecated-declarations]
street = [[self addressDictionary] objectForKey:(NSString *)kABPersonAddressStreetKey];
^
In module 'AddressBook' imported from
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/geocoding-2.0.4/ios/Classes/Extensions/CL
PlacemarkExtensions.m:8:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.5.sdk/System/Libr
ary/Frameworks/AddressBook.framework/Headers/ABPerson.h:113:29: note: 'kABPersonAddressStreetKey' has been
explicitly marked deprecated here
AB_EXTERN const CFStringRef kABPersonAddressStreetKey AB_DEPRECATED("use CNPostalAddress.street");
^
3 warnings generated.
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Types/URLCredential.swift:14:25: warning: comparing non-optional value of type '[Any]' to 'nil' always returns
true
if certificates != nil {
~~~~~~~~~~~~ ^ ~~~
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
InAppBrowser/InAppBrowserWebViewController.swift:561:13: warning: setter for 'statusBarStyle' was deprecated in
iOS 9.0: Use -[UIViewController preferredStatusBarStyle]
UIApplication.shared.statusBarStyle = UIStatusBarStyle(rawValue: previousStatusBarStyle)!
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
return .spotlightSuggestion
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:86:25: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
return .spotlightSuggestion
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: warning: 'spotlightSuggestion' was deprecated in iOS 10.0: renamed to
'WKDataDetectorTypes.lookupSuggestion'
if type.contains(.spotlightSuggestion) {
^
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:121:31: note: use 'WKDataDetectorTypes.lookupSuggestion' instead
if type.contains(.spotlightSuggestion) {
^~~~~~~~~~~~~~~~~~~
WKDataDetectorTypes.lookupSuggestion
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Classes/
Util.swift:216:21: warning: immutable value 'j' was never used; consider replacing with '_' or removing it
for j in ipv6.count...8 {
^
_
/* com.apple.ibtool.document.warnings */
/Users/gregoryew/flutter_apps/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_inappwebview-5.4.3+7/ios/Storyboa
rds/WebView.storyboard:global: warning: This file is set to build for a version older than the deployment target.
Functionality may be limited. [9]
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart': No such file or directory
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart': No such file or directory
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart': No such file or directory
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart': No such file or
directory
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart': No such file or directory
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart': No such file or directory
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart': No such file or directory
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart': No such file or directory
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart': No such file or directory
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart': No such file or directory
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart': No such file or directory
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart': No such file or directory
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart': No such file or
directory
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Error when reading
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart': No such file or directory
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:25:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/add_event.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/add_event.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:26:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/arrow_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/arrow_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:27:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/close_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/close_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:28:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/ellipsis_search.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/ellipsis_search.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:29:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/event_add.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/event_add.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:30:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/home_menu.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/home_menu.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:31:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/list_view.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/list_view.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:32:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_arrow.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_arrow.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:33:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_close.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_close.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:34:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/menu_home.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/menu_home.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:35:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/pause_play.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/pause_play.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:36:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/play_pause.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/play_pause.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:37:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/search_ellipsis.g.dart' as a part, because it
has no 'part of' declaration.
part 'animated_icons/data/search_ellipsis.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons.dart:38:6: Error: Can't use
'../../flutter/packages/flutter/lib/src/material/animated_icons/data/view_list.g.dart' as a part, because it has
no 'part of' declaration.
part 'animated_icons/data/view_list.g.dart';
^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:19:45: Error: Undefined
name '_$add_event'.
static const AnimatedIconData add_event = _$add_event;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:22:46: Error: Undefined
name '_$arrow_menu'.
static const AnimatedIconData arrow_menu = _$arrow_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:25:46: Error: Undefined
name '_$close_menu'.
static const AnimatedIconData close_menu = _$close_menu;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:28:51: Error: Undefined
name '_$ellipsis_search'.
static const AnimatedIconData ellipsis_search = _$ellipsis_search;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:31:45: Error: Undefined
name '_$event_add'.
static const AnimatedIconData event_add = _$event_add;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:34:45: Error: Undefined
name '_$home_menu'.
static const AnimatedIconData home_menu = _$home_menu;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:37:45: Error: Undefined
name '_$list_view'.
static const AnimatedIconData list_view = _$list_view;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:40:46: Error: Undefined
name '_$menu_arrow'.
static const AnimatedIconData menu_arrow = _$menu_arrow;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:43:46: Error: Undefined
name '_$menu_close'.
static const AnimatedIconData menu_close = _$menu_close;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:46:45: Error: Undefined
name '_$menu_home'.
static const AnimatedIconData menu_home = _$menu_home;
^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:49:46: Error: Undefined
name '_$pause_play'.
static const AnimatedIconData pause_play = _$pause_play;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:52:46: Error: Undefined
name '_$play_pause'.
static const AnimatedIconData play_pause = _$play_pause;
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:55:51: Error: Undefined
name '_$search_ellipsis'.
static const AnimatedIconData search_ellipsis = _$search_ellipsis;
^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/material/animated_icons/animated_icons_data.dart:58:45: Error: Undefined
name '_$view_list'.
static const AnimatedIconData view_list = _$view_list;
^^^^^^^^^^^
lib/main.dart:58:10: Error: A non-null value must be returned since the return type 'Widget' doesn't allow null.
- 'Widget' is from 'package:flutter/src/widgets/framework.dart'
('../../flutter/packages/flutter/lib/src/widgets/framework.dart').
Widget build(BuildContext context) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/provider-5.0.0/lib/src/inherited_provider.dart:391:26: Warning:
Operand of null-aware operation '!' has type 'SchedulerBinding' which excludes null.
- 'SchedulerBinding' is from 'package:flutter/src/scheduler/binding.dart'
('../../flutter/packages/flutter/lib/src/scheduler/binding.dart').
SchedulerBinding.instance!.addPostFrameCallback((_) {
^
../../flutter/.pub-cache/hosted/pub.dartlang.org/percent_indicator-3.4.0/lib/linear_percent_indicator.dart:156:20:
Warning: Operand of null-aware operation '?.' has type 'WidgetsBinding' which excludes null.
- 'WidgetsBinding' is from 'package:flutter/src/widgets/binding.dart'
('../../flutter/packages/flutter/lib/src/widgets/binding.dart').
WidgetsBinding.instance?.addPostFrameCallback((_) {
^
Failed to package /Users/gregoryew/flutter_apps/FelineFinder/feline_finder.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in dependency order
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'leveldb-library' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'OrderedSet' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'AppAuth' from project 'Pods')
/Users/gregoryew/flutter_apps/FelineFinder/feline_finder/ios/Pods/Pods.xcodeproj: warning: The iOS deployment
target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to
15.5.99. (in target 'GoogleSignIn' from project 'Pods')
Result bundle written to path:
/var/folders/xp/fl30w5315b33hw_npc3wykb40000gn/T/flutter_tools.vcek1g/flutter_ios_build_temp_dirjbPPUe/temporary_
xcresult_bundle
Could not build the precompiled application for the device.
Error launching application on iPhone.
I tried deleting *.g.dart and running all the solutions I could find for similar problems but nothing works. It all seemed to occur after I added the following to my info.plist but not sure if this is related or not.
<key>LSApplicationQueriesSchemes</key>
<array>
<string>comgooglemaps</string>
</array>
Also getting the following when I do a flutter run in vs code's output window but not sure if it is related:
Running "flutter pub get" in example...
Null check operator used on a null value
package:pub/src/entrypoint.dart 157:60 Entrypoint.lockFilePath
package:pub/src/entrypoint.dart 100:21 Entrypoint._loadLockFile
package:pub/src/entrypoint.dart 97:42 Entrypoint.lockFile
package:pub/src/entrypoint.dart 286:21 Entrypoint.acquireDependencies.<fn>
package:pub/src/entrypoint.dart 280:68 Entrypoint.acquireDependencies.<fn>
package:pub/src/log.dart 428:18 progress
package:pub/src/entrypoint.dart 280:26 Entrypoint.acquireDependencies
package:pub/src/command/get.dart 52:22 GetCommand.runProtected
package:pub/src/command.dart 183:45 PubCommand.run.<fn>
package:pub/src/command.dart 183:33 PubCommand.run.<fn>
dart:async new Future.sync
package:pub/src/utils.dart 109:12 captureErrors.wrappedCallback
dart:async runZonedGuarded
package:pub/src/utils.dart 126:5 captureErrors
package:pub/src/command.dart 183:13 PubCommand.run
package:args/command_runner.dart 209:27 CommandRunner.runCommand
package:pub/src/command_runner.dart 174:24 PubCommandRunner.runCommand
package:pub/src/command_runner.dart 159:20 PubCommandRunner.run
package:dartdev/dartdev.dart 45:56 runDartdev
/opt/s/w/ir/cache/builder/sdk/pkg/dartdev/bin/dartdev.dart 11:9 main
This is an unexpected error. The full log and other details are collected in:
/Users/gregoryew/flutter_apps/flutter/.pub-cache/log/pub_log.txt
Consider creating an issue on https://github.com/dart-lang/pub/issues/new
and attaching the relevant parts of that log file.
.
pub get failed (255; .)
exit code 255
I am pretty new to Flutter & Dart. What can I try?
I have similar error and after many tries I solved in this way:
Update MacOS
Update Xcode and command lines tools
Run flutter pub upgrade, flutter pub get in the project folder
Delete podfile.lock in ios folder of the project
Run cd ios, pod repo update, pod install in the project folder
Delete Runner.xcworkspace,Podfile.lock
then follow these steps
Error when trying to run my Flutter App with my m1 mac
my project was execute properly at both platform suddenly i add one dependency it was fail to build, i was remove and try again to build project but issue was still occurs when i run it's throw error like :
Error output from Xcode build:
↳
objc[38495]: Class AMSupportURLConnectionDelegate is implemented in both ?? (0x1f7d378f0) and ?? (0x1165342b8). One of the two will be used. Which one is undefined.
objc[38495]: Class AMSupportURLSession is implemented in both ?? (0x1f7d37940) and ?? (0x116534308). One of the two will be used. Which one is undefined.
** BUILD FAILED **
Xcode's output:
↳
/Users/techeniacservices/Documents/Flutter Project/New/Weone/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/techeniacservices/Documents/Flutter Project/New/Weone/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
1 warning generated.
4 warnings generated.
/Users/techeniacservices/Documents/Flutter Project/New/Weone/ios/Pods/libwebp/src/enc/backward_references_enc.c:694:12: warning: variable 'best_offset' may be uninitialized when used here [-Wconditional-uninitialized]
(best_offset << MAX_LENGTH_BITS) | (uint32_t)best_length;
^~~~~~~~~~~
/Users/techeniacservices/Documents/Flutter Project/New/Weone/ios/Pods/libwebp/src/enc/backward_references_enc.c:626:20: note: initialize the variable 'best_offset' to silence this warning
int best_offset;
^
= 0
1 warning generated.
35 warnings generated.
35 warnings generated.
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadataExif.m:9:9: warning: non-portable path to file '"SYMetadataExif.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
#import "SYMetadataEXIF.h"
^~~~~~~~~~~~~~~~~~
"SYMetadataExif.h"
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadataExif.m:41:65: warning: 'kCGImagePropertyExifSubsecTimeOrginal' is deprecated: first deprecated in iOS 10.0 - No longer supported [-Wdeprecated-declarations]
SYStringSel(subsecTimeOriginal): (NSString *)kCGImagePropertyExifSubsecTimeOrginal,
^
In module 'ImageIO' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadataExif.m:10:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h:248:34: note: 'kCGImagePropertyExifSubsecTimeOrginal' has been explicitly marked deprecated here
IMAGEIO_EXTERN const CFStringRef kCGImagePropertyExifSubsecTimeOrginal IMAGEIO_AVAILABLE_BUT_DEPRECATED(10.4, 10.11, 4.0, 10.0);
^
2 warnings generated.
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:49:36: warning: 'ALAsset' is deprecated: first deprecated in iOS 9 - Use PHAsset from the Photos framework instead [-Wdeprecated-declarations]
+ (instancetype)metadataWithAsset:(ALAsset *)asset
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:40:12: note: 'ALAsset' has been explicitly marked deprecated here
#interface ALAsset : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:52:5: warning: 'ALAssetRepresentation' is deprecated: first deprecated in iOS 9 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
ALAssetRepresentation *representation = [asset defaultRepresentation];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:20:12: note: 'ALAssetRepresentation' has been explicitly marked deprecated here
#interface ALAssetRepresentation : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:52:52: warning: 'defaultRepresentation' is deprecated: first deprecated in iOS 9 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
ALAssetRepresentation *representation = [asset defaultRepresentation];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:49:1: note: 'defaultRepresentation' has been explicitly marked deprecated here
- (ALAssetRepresentation *)defaultRepresentation AL_DEPRECATED(4, "Use PHImageRequestOptions with the PHImageManager from the Photos framework instead");
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:53:57: warning: 'metadata' is deprecated: first deprecated in iOS 9 - Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
return [self metadataWithDictionary:[representation metadata]];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:56:1: note: 'metadata' has been explicitly marked deprecated here
- (NSDictionary *)metadata AL_DEPRECATED(4, "Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead");
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:150:13: warning: 'ALAsset' is deprecated: first deprecated in iOS 9 - Use PHAsset from the Photos framework instead [-Wdeprecated-declarations]
__block ALAsset *assetAtUrl = nil;
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:40:12: note: 'ALAsset' has been explicitly marked deprecated here
#interface ALAsset : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:151:5: warning: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations]
ALAssetsLibrary* library = [[ALAssetsLibrary alloc] init];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:78:12: note: 'ALAssetsLibrary' has been explicitly marked deprecated here
#interface ALAssetsLibrary : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:151:50: warning: 'ALAssetsLibrary' is deprecated: first deprecated in iOS 9 - Use PHPhotoLibrary from the Photos framework instead [-Wdeprecated-declarations]
ALAssetsLibrary* library = [[ALAssetsLibrary alloc] init];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:78:12: note: 'ALAssetsLibrary' has been explicitly marked deprecated here
#interface ALAssetsLibrary : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:154:49: warning: 'ALAsset' is deprecated: first deprecated in iOS 9 - Use PHAsset from the Photos framework instead [-Wdeprecated-declarations]
[library assetForURL:assetURL resultBlock:^(ALAsset *asset) {
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:40:12: note: 'ALAsset' has been explicitly marked deprecated here
#interface ALAsset : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:154:14: warning: 'assetForURL:resultBlock:failureBlock:' is deprecated: first deprecated in iOS 9 - Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead [-Wdeprecated-declarations]
[library assetForURL:assetURL resultBlock:^(ALAsset *asset) {
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetsLibrary.h:93:1: note: 'assetForURL:resultBlock:failureBlock:' has been explicitly marked deprecated here
- (void)assetForURL:(NSURL *)assetURL resultBlock:(ALAssetsLibraryAssetForURLResultBlock)resultBlock failureBlock:(ALAssetsLibraryAccessFailureBlock)failureBlock AL_DEPRECATED(4, "Use fetchAssetsWithLocalIdentifiers:options: on PHAsset to fetch assets by local identifier (or to lookup PHAssets by a previously known ALAssetPropertyAssetURL use fetchAssetsWithALAssetURLs:options:) from the Photos framework instead");
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:165:5: warning: 'ALAssetRepresentation' is deprecated: first deprecated in iOS 9 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
ALAssetRepresentation *representation = [assetAtUrl defaultRepresentation];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:20:12: note: 'ALAssetRepresentation' has been explicitly marked deprecated here
#interface ALAssetRepresentation : NSObject {
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:165:57: warning: 'defaultRepresentation' is deprecated: first deprecated in iOS 9 - Use PHImageRequestOptions with the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
ALAssetRepresentation *representation = [assetAtUrl defaultRepresentation];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAsset.h:49:1: note: 'defaultRepresentation' has been explicitly marked deprecated here
- (ALAssetRepresentation *)defaultRepresentation AL_DEPRECATED(4, "Use PHImageRequestOptions with the PHImageManager from the Photos framework instead");
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:166:28: warning: 'metadata' is deprecated: first deprecated in iOS 9 - Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead [-Wdeprecated-declarations]
return [representation metadata];
^
In module 'AssetsLibrary' imported from /Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/SYPictureMetadata/SYMetadata.m:14:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/AssetsLibrary.framework/Headers/ALAssetRepresentation.h:56:1: note: 'metadata' has been explicitly marked deprecated here
- (NSDictionary *)metadata AL_DEPRECATED(4, "Use CGImageSourceCopyPropertiesAtIndex() to retrieve metadata from an image returned by the PHImageManager from the Photos framework instead");
^
12 warnings generated.
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:39:18: warning: direct comparison of a string literal has undefined behavior [-Wobjc-string-compare]
if(imageType == #"image/webp") {
^ ~~~~~~~~~~~~~
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:39:18: note: use 'isEqual:' instead
if(imageType == #"image/webp") {
^~
[ isEqual: ]
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:82:18: warning: direct comparison of a string literal has undefined behavior [-Wobjc-string-compare]
if(imageType == #"image/webp") {
^ ~~~~~~~~~~~~~
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:82:18: note: use 'isEqual:' instead
if(imageType == #"image/webp") {
^~
[ isEqual: ]
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:109:16: warning: unused variable 'swf' [-Wunused-variable]
const char swf[3] = {'F', 'W', 'S'};
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:110:16: warning: unused variable 'swc' [-Wunused-variable]
const char swc[3] = {'C', 'W', 'S'};
^
4 warnings generated.
2 warnings generated.
12 warnings generated.
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:39:18: warning: direct comparison of a string literal has undefined behavior [-Wobjc-string-compare]
if(imageType == #"image/webp") {
^ ~~~~~~~~~~~~~
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:39:18: note: use 'isEqual:' instead
if(imageType == #"image/webp") {
^~
[ isEqual: ]
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:82:18: warning: direct comparison of a string literal has undefined behavior [-Wobjc-string-compare]
if(imageType == #"image/webp") {
^ ~~~~~~~~~~~~~
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:82:18: note: use 'isEqual:' instead
if(imageType == #"image/webp") {
^~
[ isEqual: ]
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:109:16: warning: unused variable 'swf' [-Wunused-variable]
const char swf[3] = {'F', 'W', 'S'};
^
/Users/techeniacservices/Documents/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_image_compress-1.1.0/ios/Classes/CompressFileHandler.m:110:16: warning: unused variable 'swc' [-Wunused-variable]
const char swc[3] = {'C', 'W', 'S'};
^
4 warnings generated.
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:13:11: Error: Member not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(exception, stackTrace);
^^^^^^^^^^^^^^^^^^^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:16:9: Error: Member not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(
^^^^^^^^^^^^^^^^^^^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_messaging_platform_interface-3.2.0/lib/src/method_channel/utils/exception.dart:11:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
Never convertPlatformException(Object exception, StackTrace stackTrace) {
^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:14:11: Error: Member not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(exception, stackTrace);
^^^^^^^^^^^^^^^^^^^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:17:9: Error: Member not found: 'Error.throwWithStackTrace'.
Error.throwWithStackTrace(
^^^^^^^^^^^^^^^^^^^
../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_platform_interface-6.2.0/lib/src/method_channel/utils/exception.dart:12:7: Error: A non-null value must be returned since the return type 'Never' doesn't allow null.
Never convertPlatformException(Object exception, StackTrace stackTrace) {
^
Failed to package /Users/techeniacservices/Documents/Flutter Project/New/Weone.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'AppAuth' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Toast' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'Reachability' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'FMDB' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'TOCropViewController-TOCropViewControllerBundle' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'TOCropViewController' from project 'Pods')
warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.4.99. (in target 'GoogleSignIn' from project 'Pods')
Could not build the application for the simulator.
Error launching application on iPhone 12 Pro.
in pubspact.yaml:
environment:
sdk: ">=2.2.2 <3.0.0"
dependencies:
flutter:
...
firebase_core: ^1.12.0
firebase_auth: ^3.3.6
firebase_analytics: ^9.1.0
firebase_messaging: ^11.2.6
flutter_local_notifications: ^9.2.0
...
i try to clean project, pub get, delete all pod file, rebuild project, restart IDE etc
i also checkout my committed branch and try to run but sill on that code also occur same issue.
can anyone help me to solve this...
Thank you
update flutter
2.10.3
dependencies:
firebase_core: ^1.12.0
firebase_auth: ^1.1.0
firebase_analytics: ^9.1.0
firebase_messaging: ^11.2.5
flutter_local_notifications: ^9.2.0
Add this in pubspec.yaml file -
dependencies:
platform: ^3.1.0
and run -
flutter pub get
Flutter Version: 2.6.0-12.0.pre.381
Dart Version: 2.15.0
Gradle version : distributionUrl=https://services.gradle.org/distributions/gradle-6.7-all.zip
In pubspec.yaml, I have these packages:
environment:
sdk: ">=2.12.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
splashscreen: ^1.2.0
bottom_navy_bar:
cupertino_icons: ^1.0.2
image_picker: ^0.8.0+4
fluttertoast: ^8.0.7
shared_preferences: ^2.0.6
share: ^2.0.4
flutter_barcode_scanner: ^2.0.0-nullsafety.0
dropdown_search: ^1.0.0
syncfusion_flutter_pdfviewer:
ndialog: ^4.1.0
flutter_pdfview: ^1.0.4
http: ^0.13.3
dio: ^4.0.0
path_provider: ^2.0.3
downloads_path_provider_28: ^0.1.2
permission_handler: ^8.1.4+2
open_file: ^3.2.1
flutter_local_notifications: ^9.0.0
Same packages are working in another project.
Any suggestions on how to fix the problem. I think it is due to some error in build.graddle.
I have changed minSdkVersion and targetSdkVersion in build.gradle as follows:
minSdkVersion 23
targetSdkVersion 29
multiDexEnabled true
It is showing error while running the project:
Launching lib\main.dart on SM M205F in debug mode...
Running Gradle task 'assembleDebug'...
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\downloads_path_provider_28-0.1.2\android\src\main\java\it\nplace\downloadspathprovider\DownloadsPathProviderPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\image_picker-0.8.4+2\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:58: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:59: error: cannot find symbol
status = Environment.isExternalStorageManager()
^
symbol: method isExternalStorageManager()
location: class Environment
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:254: error: cannot find symbol
if (permission == PermissionConstants.PERMISSION_GROUP_MANAGE_EXTERNAL_STORAGE && Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:268: error: cannot find symbol
} else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && permission == PermissionConstants.PERMISSION_GROUP_MANAGE_EXTERNAL_STORAGE) {
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:270: error: cannot find symbol
Settings.ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION,
^
symbol: variable ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION
location: class Settings
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:321: error: cannot find symbol
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
^
symbol: variable S
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:349: error: cannot find symbol
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:380: error: cannot find symbol
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) {
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionManager.java:384: error: cannot find symbol
return Environment.isExternalStorageManager()
^
symbol: method isExternalStorageManager()
location: class Environment
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:64: error: cannot find symbol
case Manifest.permission.MANAGE_EXTERNAL_STORAGE:
^
symbol: variable MANAGE_EXTERNAL_STORAGE
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:72: error: cannot find symbol
case Manifest.permission.BLUETOOTH_SCAN:
^
symbol: variable BLUETOOTH_SCAN
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:74: error: cannot find symbol
case Manifest.permission.BLUETOOTH_ADVERTISE:
^
symbol: variable BLUETOOTH_ADVERTISE
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:76: error: cannot find symbol
case Manifest.permission.BLUETOOTH_CONNECT:
^
symbol: variable BLUETOOTH_CONNECT
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:235: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && hasPermissionInManifest(context, permissionNames, Manifest.permission.MANAGE_EXTERNAL_STORAGE ))
^
symbol: variable R
location: class VERSION_CODES
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:235: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R && hasPermissionInManifest(context, permissionNames, Manifest.permission.MANAGE_EXTERNAL_STORAGE ))
^
symbol: variable MANAGE_EXTERNAL_STORAGE
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:236: error: cannot find symbol
permissionNames.add(Manifest.permission.MANAGE_EXTERNAL_STORAGE);
^
symbol: variable MANAGE_EXTERNAL_STORAGE
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:259: error: cannot find symbol
String result = determineBluetoothPermission(context, Manifest.permission.BLUETOOTH_SCAN);
^
symbol: variable BLUETOOTH_SCAN
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:270: error: cannot find symbol
String result = determineBluetoothPermission(context, Manifest.permission.BLUETOOTH_ADVERTISE);
^
symbol: variable BLUETOOTH_ADVERTISE
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:281: error: cannot find symbol
String result = determineBluetoothPermission(context, Manifest.permission.BLUETOOTH_CONNECT);
^
symbol: variable BLUETOOTH_CONNECT
location: class permission
C:\flutter\.pub-cache\hosted\pub.dartlang.org\permission_handler-8.2.5\android\src\main\java\com\baseflow\permissionhandler\PermissionUtils.java:370: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S && hasPermissionInManifest(context, null, permission )) {
^
symbol: variable S
location: class VERSION_CODES
20 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':permission_handler:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* 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
BUILD FAILED in 44s
Exception: Gradle task assembleDebug failed with exit code 1
This is happing due to compileSdkVersion. Head over to android/app/build.gradle and change complieSdkVersion to 31.
android {
compileSdkVersion 31
...
}
In pubspec.yaml file :-
dependencies:
permission_handler: ^8.2.5
The error must be happening in versions 8.2.0 and onwards. If you still encounter some error then install a version less 8.2.0.
Faced the same issue and this is how i solved it:
First i removed permission_handler from my yaml file.
Then did a flutter clean.
In pubspec.yaml : I changed the version of the permission_handler plugin from 8.2.6 to:
permission_handler: ^8.2.0
Then In android/app/build.grale file:changed compile sdk version to 31.
I think that Build.VERSION_CODES.R is API Level 30 , so setting compileSdkVersion to 30 should fix the issue .
I changed permission_handler: ^8.1.4+2 with permission_handler: 6.0.0 in pubspec.yaml .Now project is working fine. Thanks for your assistance.