我的项目中有两个 .arb 文件,一切正常,但今天我添加了两个字符串,并且在执行以下操作时收到此错误flutter pub get:
Generating synthetic localizations package failed with 1 error:
Exception: The arb file C:\Users\KarolW\Documents\git\partyfinder-mobile\lib/l10n\app_en.arb has the following formatting issue:
FormatException: Unexpected character (at line 439, character 1)
}
Run Code Online (Sandbox Code Playgroud)
我尝试删除添加的字符串,尝试删除所有字符串,尝试执行此操作flutter clean,但错误仍然存在,我不知道为什么。
我正在发布我的所有 .arb 文件,我在文件末尾添加了“from”和“to”:
{
"@@locale": "en",
"appName": "Partyfinder",
"@appName": {},
"pageLoginMessage": "Sign in",
"@pageLoginMessage": {},
"facebookPageLoginMessage": "Sign in with Facebook",
"@facebookPageLoginMessage": {},
"email": "Email",
"@email": {},
"password": "Password",
"@password": {},
"forgotPassword": "Forgot Password?",
"@forgotPassword": {},
"noAccountMessage": "Don't have an account?",
"@noAccountMessage": {}, …Run Code Online (Sandbox Code Playgroud) 我在旧版本的 Android - 5.1 上启动我的应用程序,但收到此错误:
Unhandled Exception: HandshakeException: Handshake error in client (OS Error: CERTIFICATE_VERIFY_FAILED: certificate has expired(handshake.cc:393))
Run Code Online (Sandbox Code Playgroud)
在较新的 Android(如 10)上,此情况不会出现。我正在向后端发出 POST 请求,如何修复它?
我找到了解决方案:在此处输入链接描述