You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently upgraded my flutter application to Android V2, and also made my code null safe.
Now when I try to run my code I get the below build error:
*e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\amplify_core-
0.4.0\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (26, 1):
Class 'AtomicResult' is not abstract and does not implement abstract member public abstract
fun error(p0: String, p1: String?, p2: Any?): Unit defined in
io.flutter.plugin.common.MethodChannel.Result
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\amplify_core-
0.4.0\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (54, 5):
'error' overrides nothing
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\amplify_core-
0.4.0\android\src\main\kotlin\com\amazonaws\amplify\amplify_core\AtomicResult.kt: (66, 26):
Type mismatch: inferred type is String? but String was expected
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':amplify_core:compileDebugKotlin'.
> 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 15s
Exception: Gradle task assembleDebug failed with exit code 1*
You can also find the content of my build.gradle below:
Deleted the amplify_core-0.4.0 from the pub.dartlang.org folder and tried again
Initialized Amplify again and pulled the environment from the Launch Studio again
Any help would be greatly appreciated!
Thanks
Categories
Analytics
API
Auth
DataStore
Storage
Steps to Reproduce
No response
Screenshots
No response
Platforms
iOS
Android
Environment
[√] Flutter (Channel master, 2.11.0-0.0.pre.652, on Microsoft Windows [Version 10.0.19044.1526], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Visual Studio Community 2019 16.5.4)
X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop development with C++" workload, and include these components:
MSVC v142 - VS 2019 C++ x64/x86 build tools
- If there are multiple build tool versions available, install the latest
C++ CMake tools for Windows
Windows 10 SDK
[√] Android Studio (version 2020.3)
[√] Android Studio (version 2021.1)
[√] VS Code (version 1.64.1)
[√] Connected device (3 available)
[√] HTTP Host Availability
! Doctor found issues in 1 category.
dnys1
added
core
Issues related to the Amplify Core Plugin
pending-release
Issues that have been addressed in main but have not been released
labels
Feb 23, 2022
Thanks, @moezelahi - I've created a PR with the fix which should be released in the next Amplify version. This issue appears to only be reproducible on Flutter master due to a recent update to their method channel interface in Java. You should not experience the issue on the stable or beta branches.
Description
Hi,
I recently upgraded my flutter application to Android V2, and also made my code null safe.
Now when I try to run my code I get the below build error:
You can also find the content of my build.gradle below:
Things I tried that did not work:
Any help would be greatly appreciated!
Thanks
Categories
Steps to Reproduce
No response
Screenshots
No response
Platforms
Environment
Dependencies
Device
Pixel 4
OS
Android 12
Additional Context
No response
The text was updated successfully, but these errors were encountered: