Cannot build
yakagami opened this issue · 2 comments
复现步骤 / Steps to reproduce
- rename config.sample
- rename firebase.sample
- try to build in debug or release
I was able to build without issues a few months ago. (when it was in the previous repo.)
预期行为 / Expected behaviour
should build
实际行为 / Actual behaviour
Execution failed for task ':app:processReleaseGoogleServices'.
com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 32 path $
备注 / Additional details
I also get this error at the start of compiling. I don't think it is related.
One or more plugins require a higher Android NDK version.
Fix this issue by adding the following to [path]/FEhViewer/android/app/build.gradle:
android {
ndkVersion "25.2.9519653"
...
}
FEhViewer 版本号 / FEhViewer version code
master
FEhViewer CI 版本 / FEhViewer CI version
N/A
平台 / Platform
No response
系统版本 / System version
N/A
设备型号 / Device model
N/A
SoC 型号 / SoC model
N/A
应用日志 / App logs
see above
自查步骤 / Self-review steps
- 如果您有足够的时间和能力,并愿意为修复此问题提交 PR ,请勾上此复选框 / Pull request is welcome. Check this if you want to start a pull request
- 您已搜索过 Issue Tracker,没有找到类似的问题 / I have searched on Issue Tracker, No duplicate or related open issue has been found
- 您确保这个 Issue 只提及一个问题。如果您有多个问题报告,烦请发起多个 Issue / Ensure there is only one bug report in this issue. Please make mutiply issue for mutiply bugs
- 您确保已使用 最新 CI 版本 测试,并且该问题在最新 CI 版本中并未解决 / This bug have not solved in latest CI version
commenting out these lines in app/build.gradle fixes the issue:
//apply plugin: 'com.google.gms.google-services'
//apply plugin: 'com.google.firebase.crashlytics'
also removed
//classpath 'com.google.gms:google-services:4.3.14'
//classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
so this is caused by firebase somehow.