Error map
JsonSyntaxException: Expected BEGIN_ARRAY but was BEGIN_OBJECT com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
Android · layer 1, On your device
Centre: this error. First ring: errors it is linked with (12). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.
Directly related (12)
java.lang.NumberFormatException: For input string: "x"
A string couldn’t be parsed as a number — it’s empty, has spaces/commas, is too large, or isn’t numeric.
java.util.InputMismatchException (Scanner)
Scanner.nextInt()/nextDouble() read a token that isn’t that type.
Dart: type '_InternalLinkedHashMap<String, dynamic>' is not a subtype of type 'List<dynamic>' in type cast
JSON decoded to a Map but your code expected a List (or the other way round).
java.time.format.DateTimeParseException: Text '31/12/2024' could not be parsed at index 2
A java.time parse call got text that doesn’t match the expected format.
Dart: FormatException: Unexpected character (at character 1) <!DOCTYPE html> — jsonDecode of an HTML page
`jsonDecode` received something that is not JSON, commonly an HTML error page, an empty string, or a plain-text message.
java.text.ParseException: Unparseable date: "x"
SimpleDateFormat couldn’t parse the string with its pattern.
Dart: type 'Null' is not a subtype of type 'String' in type cast
A value that was `null` at runtime was cast or used as a non-nullable type, most often when parsing JSON.
Error Domain=NSCocoaErrorDomain Code=3840 "Unable to parse empty data." / dataCorrupted
JSONDecoder got empty, HTML or malformed data.
com.airbnb.lottie.LottieAnimationView: Unable to parse composition: java.lang.IllegalStateException: Unable to find lottie json
Lottie couldn't read the animation file.
kotlinx.serialization.MissingFieldException: Field 'id' is required for type with serial name 'com.example.User', but it was missing
A required property wasn't present in the JSON being decoded.
java.io.IOException: Canceled
An OkHttp call was cancelled.
java.lang.RuntimeException: Unable to invoke no-args constructor for interface com.example.Item. Registering an InstanceCreator with Gson for this type may fix this problem.
Gson can't instantiate an interface or abstract type.
Two steps away (36)
HTTP 422 Unprocessable Content
The request is well-formed, but the data fails validation (e.g. invalid email, missing required field).
KeyError: 'x'
You accessed a dictionary key that doesn’t exist.
java.lang.NullPointerException
Code called a method or accessed a field on a reference that is `null`.
java.lang.ArithmeticException: / by zero
Integer division or modulo by zero.
java.nio.file.AccessDeniedException: /path
The OS denied a file operation to the Java process.
RangeError: Invalid time value
A Date is invalid (NaN), and toISOString() or a formatting library couldn’t format it.
Dart: Bad state: No element — .first, .last or .single on an empty list
You called `.first`, `.last`, `.single` or `.reduce` on an empty collection.
Dart: Error: Couldn't resolve the package 'x' in 'package:x/x.dart'
Code imports a package that is not in `pubspec.yaml` or `pub get` has not been run since adding it.
Dart: The argument type 'String?' can't be assigned to the parameter type 'String'
You passed a value whose type does not match what the function parameter requires.
MySQL ERROR 1292 (22007): Incorrect datetime value: 'x' for column 'y'
A string couldn’t be converted to DATE/DATETIME — wrong format, empty string, or a zero date in strict mode.
ERROR: date/time field value out of range: "31/12/2024" — HINT: Perhaps you need a different "datestyle" setting.
PostgreSQL parsed a date in the wrong order (DMY vs MDY) or got an impossible value.
ValueError: invalid literal for int() with base 10: 'abc'
int() received a string that isn’t a whole number — empty, decimal, whitespace or text.
Flutter: Unhandled Exception: SocketException: Failed host lookup: 'api.example.com' (OS Error: No address associated with hostname, errno = 7)
The app could not resolve or reach the server: no internet, wrong host name, DNS failure, or missing network permission.
Dart: RangeError (index): Invalid value: Valid value range is empty: 0
A list or string was indexed outside its bounds, often an empty list or an off-by-one in `itemBuilder`.
Flutter (Android): java.io.IOException: Cleartext HTTP traffic to api.example.com not permitted
Android 9+ blocks plain `http://` requests by default; the app must use HTTPS or explicitly allow cleartext for that host.
API Error: Invalid date format — expected ISO 8601 (YYYY-MM-DDTHH:mm:ssZ)
A date or timestamp in the request isn’t in the format the API expects — usually ISO 8601 with a time zone, or a Unix timestamp.
System.FormatException: Input string was not in a correct format
int.Parse/decimal.Parse/Convert.ToInt32 got a string that isn’t a valid number — empty, contains text, or uses another culture’s…
Dates mixed up: dd/mm/yyyy vs mm/dd/yyyy, ISO 8601 recommended
A date string like 03/04/2026 is read as March 4th or April 3rd depending on locale, so rows get wrong dates or conversion errors.
Dart/Flutter: Null check operator used on a null value
The ! operator was applied to a variable that was null at runtime.
Dart: LateInitializationError: Field 'controller' has not been initialized
A `late` variable was read before it was assigned.
Dart: Non-nullable instance field 'name' must be initialized. Try adding an initializer expression, or a generative constructor that initializes it, or mark it 'late'
With null safety every non-nullable field needs a value by the end of construction.
[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/...
CocoaPods couldn’t reach its CDN spec repo — network/proxy issues, rate limiting, or an outdated CocoaPods.
Error Domain=NSURLErrorDomain Code=-1001 "The request timed out."
The server didn’t respond within URLSession’s timeout (60 s default) — slow server, unreachable host on this network, or a stalle…
Swift DecodingError: keyNotFound / typeMismatch / valueNotFound / dataCorrupted
JSONDecoder couldn’t map the JSON to your Codable type — a key is missing, a value has a different type or is null, or the data i…
android.content.res.Resources$NotFoundException: Resource ID #0x7f...
Code asked for a resource ID that doesn’t exist for the current configuration — often passing an int to setText(), or a resource…
Flutter: There are multiple heroes that share the same tag within a subtree
Two `Hero` widgets with the same tag exist on one screen during a route transition.
Flutter: _HomeState#abc(ticker active) was disposed with an active Ticker. State.dispose() implementations must call dispose() on all their AnimationControllers
An `AnimationController` was still running when its `State` was disposed, because `dispose()` did not release it.
com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type `java.util.ArrayList` from Object value
Jackson found JSON whose shape doesn’t match the target Java type (object vs array, string vs number, missing constructor).
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "x", not marked as ignorable
The JSON contains a field your Java class doesn’t have, and Jackson is configured to fail on unknown properties.
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class X and no properties discovered
Jackson can’t serialize the class — it has no public getters/fields, or it’s a Hibernate proxy, or Java 8 date types without the…
kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3
A coroutine was cancelled, usually because its scope ended.
java.net.UnknownHostException: Unable to resolve host "api.example.com": No address associated with hostname
The device couldn't turn the host name into an IP address.
java.lang.IllegalArgumentException: Unable to create converter for class com.example.User for method Api.getUser
Retrofit has no converter that can handle the response type.
java.lang.ClassNotFoundException: Didn't find class "com.example.Model" on path: DexPathList
A class is stripped or renamed by R8 in the release build but still used by reflection.
androidx.fragment.app.Fragment$InstantiationException: Unable to instantiate fragment com.example.DetailFragment: could not find Fragment constructor
The system can't recreate a fragment because it has no public no-argument constructor.
Crashlytics: Missing deobfuscation mapping file
Crashlytics shows obfuscated stack traces because mapping files weren't uploaded.