My project is run on AVD properly. but when i try to generate signed APK, gradle get this error:
FAILURE: Build failed with an exception.
* What went wrong:
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
> Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
* 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
I've used this command many times: gson.fromJson
. but i can't find error source. (which file and which line).
So how do I find the source of the error
I got this error in Android Studio 4.0 when I did a Gradle sync after switching branches. I fixed it by doing this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With