Status Update
Comments
ni...@nthearle.demon.co.uk <ni...@nthearle.demon.co.uk> #2
Hi. We ran into something like this. I'd really like some support
jb...@android.com <jb...@android.com> #4
We decided to use the solution from the comment (via @Contextual) 👀
I would like to note this point in the documentation, if it is not noted.
cy...@gmail.com <cy...@gmail.com> #5
cy...@gmail.com <cy...@gmail.com> #6
Curious about what is the recommendation for:
@Serializable
data class MyDestination(val id: UUID) {
companion object {
val typeMap = mapOf(
typeOf<UUID>() to NavType.SerializableType(UUID::class.java),
)
fun from(savedStateHandle: SavedStateHandle) = savedStateHandle.toRoute<MyDestination>(typeMap)
}
}
The following compilation error is present for UUID
:
Serializer has not been found for type 'UUID'. To use context serializer as fallback, explicitly annotate type or property with @Contextual
Furthermore, if I set a custom Serializer
for the Class of MyDestination
by @Serializable(MySerializer::class)
, then I also get the following error:
Custom serializers declared directly on a class field via @Serializable(with = ...) is currently not supported by safe args for both custom types and third-party types. Please use @Serializable or @Serializable(with = ...) on the class or object declaration.
Version 2.8.0-beta05
.
cy...@gmail.com <cy...@gmail.com> #7
My usecase is following:
@Serializable
data class DialogActivityDayHistory(
val activityId: Long,
@Serializable(LocalDateSerializer::class)
val date: LocalDate
)
Description
Upgraded from 2.2 to 2.3 ,now AVDs have no connectivity to internet.
OS - Windows Vista 64 bit
JDK - 1.6_20
(Prior to upgrade applications worked fine under 2.2 on all AVDs)
Installed SDK2.3 from Windows as Administrator, finally resorting to the starter package (using recommended .exe installer, with virus protection and firewall turned off) and adding older API levels. Added platform-tools to PATH as recommended.
Created AVDs level 7 and 9 using SDK Manager.
Started AVDs then attempted to use the built in browser ad 'maps' applications. Both fail due to lack of internet connectivity.
Errors from logcat below:
12-08 12:15:12.975: ERROR/System(53): Failure starting core service
12-08 12:15:12.975: ERROR/System(53): java.lang.SecurityException
12-08 12:15:12.975: ERROR/System(53): at android.os.BinderProxy.transact(Native Method)
12-08 12:15:12.975: ERROR/System(53): at android.os.ServiceManagerProxy.addService(ServiceManagerNative.java:146)
12-08 12:15:12.975: ERROR/System(53): at android.os.ServiceManager.addService(ServiceManager.java:72)
12-08 12:15:12.975: ERROR/System(53): at com.android.server.ServerThread.run(SystemServer.java:176)
12-08 12:15:12.985: ERROR/AndroidRuntime(53): Crash logging skipped, no checkin service
12-08 12:15:24.000: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
12-08 12:15:25.441: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
12-08 12:15:25.589: ERROR/ActivityThread(104): Failed to find provider info for android.server.checkin
12-08 12:15:27.379: ERROR/MediaPlayerService(31): Couldn't open fd for content://settings/system/notification_sound
12-08 12:15:27.400: ERROR/MediaPlayer(53): Unable to to create media player
12-08 12:15:37.729: ERROR/ActivityThread(53): Failed to find provider info for com.google.settings
12-08 12:15:37.739: ERROR/ActivityThread(53): Failed to find provider info for com.google.settings
12-08 12:16:07.329: ERROR/ActivityThread(230): Failed to find provider info for com.google.settings
12-08 12:16:28.740: ERROR/browser(230): onReceivedError -2
adb bugreport output attached