Error map
Moshi: JsonDataException: Required value missing com.squareup.moshi.JsonDataException: Required value 'name' missing at $.user
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)
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).
Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (17) and 'compileDebugKotlin' (1.8)
Java and Kotlin compile tasks target different JVM bytecode versions in the same module.
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.
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.
Expected date string to be ISO8601-formatted. codingPath: [CodingKeys(stringValue: "createdAt")]
The date string doesn't match the decoder's strategy.
Fatal error: Could not cast value of type '__NSDictionaryM' (0x1f) to 'NSArray' (0x1e)
A forced cast `as!` failed at runtime.
This version (1.5.3) of the Compose Compiler requires Kotlin version 1.9.10 but you appear to be using Kotlin version 1.9.0
The Compose compiler plugin is tied to one exact Kotlin release and yours differs.
Duplicate class kotlin.collections.jdk8.CollectionsJDK8Kt found in modules kotlin-stdlib-1.8.0 and kotlin-stdlib-jdk8-1.7.10
Two Kotlin stdlib artifacts contain the same classes and conflict at build time.
error: 'when' expression must be exhaustive, add necessary 'is Loading' branch or 'else' branch instead
A `when` used as an expression doesn't cover all sealed subclasses.
Two steps away (36)
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.
Gradle: Could not resolve all files for configuration / Could not resolve dependency
Gradle couldn’t download a dependency — wrong coordinates/version, missing repository, offline mode, or network/proxy issues.
Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
The JDK running Gradle doesn’t match what the Gradle version or Android Gradle Plugin (AGP) supports.
java.lang.UnsupportedClassVersionError: class file version 61.0, this version of the Java Runtime only recognizes up to 55.0
Code compiled for a newer Java version is running on an older JVM.
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.
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.
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.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.
java.text.ParseException: Unparseable date: "x"
SimpleDateFormat couldn’t parse the string with its pattern.
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
The JSON shape doesn't match the model: an object arrived where a list was expected.
error: Type 'User' does not conform to protocol 'Decodable'
A type doesn't satisfy a protocol's requirements.
DecodingError.dataCorrupted: Cannot initialize Status from invalid String value "pending_review"
The server sent an enum value your app doesn't know.
Swift: Could not cast value of type 'X' to 'Y'
A force cast (as!) failed because the object isn’t the expected type.
java.lang.ClassCastException: android.widget.Button cannot be cast to android.widget.TextView
A view id in the layout is a different widget type than the one the code expects.
Thread 1: Fatal error: Arithmetic operation '255 + 1' (on type 'UInt8') results in an overflow
Swift traps on integer overflow instead of wrapping.
AAPT: error: resource android:attr/lStar not found
A dependency (androidx.core 1.7+) uses an attribute from Android 12 (API 31), but your module compiles against an older compileSd…
AAPT: error: resource x (aka y) not found — Android resource linking failed
A layout, manifest or style references a resource (drawable, string, style, attribute) that doesn’t exist in the module or its de…
Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 2.0.0, expected version is 1.8.0
A dependency was compiled with a newer Kotlin version than your project’s Kotlin Gradle plugin can read.
Duplicate class X found in modules A and B
Two dependencies ship the same class — typically old Android Support libraries mixed with AndroidX, or Kotlin stdlib-jdk7/jdk8 ve…
Execution failed for task ':app:bundleRelease'. Error while executing bundletool
Building the Android App Bundle (.aab) failed in the bundle step.
2 files found with path 'META-INF/LICENSE.md' from inputs
Two dependencies ship the same file and packaging can't choose one.
kotlin.UninitializedPropertyAccessException: lateinit property adapter has not been initialized
A `lateinit var` was read before anything assigned it.
kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelling}@a1b2c3
A coroutine was cancelled, usually because its scope ended.
java.lang.NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics.checkNotNullParameter, parameter intent
Java code passed null to a Kotlin parameter that is non-null.