3003h / Eros-FE

An e-hentai/exhentai app make on flutter
Apache License 2.0
2.87k stars 126 forks source link

Cannot build #336

Closed yakagami closed 3 weeks ago

yakagami commented 9 months ago

复现步骤 / Steps to reproduce

  1. rename config.sample
  2. rename firebase.sample
  3. 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

yakagami commented 9 months ago

seems like https://github.com/3003h/FEhViewer/commit/d32fd2a48556b8c55ddb9dccbff8b545e1f45d31 is related here

yakagami commented 9 months ago

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.