How can I fix my Android Automotive app to avoid showing a screen with the message “Application Error. Please report this error to the app developer”?

An Android Automotive app that was working fine in my car a couple months ago doesn’t start correctly now. The screen says “Application Error. Please report this error to the app developer” and there is a button that says “Close Application”. I cannot reproduce this in a debug build on the emulator, but I see it in a production build on both the emulator (Android 12 and 13) and vehicle (Android 12). Previous versions of the app that worked fine in the past also have this issue.

When I open it in the emulator, I can see the following crash stack trace:

Serialization failure in getAppInfo
androidx.car.app.serialization.Bundler$TracedBundlerException: Class to deserialize is missing a no args constructor: androidx.car.app.FailureResponse, frames: [FailureResponse, FailureResponse]
at androidx.car.app.serialization.Bundler.serializeObject(Unknown Source:125)
at androidx.car.app.serialization.Bundler.toBundle(Unknown Source:285)
at androidx.car.app.serialization.Bundleable.androidx.car.app.serialization.Bundler.toBundle(SourceFile:7)
at androidx.car.app.activity.renderer.surface.RemoteProxyInputConnection$$ExternalSyntheticLambda6.androidx.car.app.serialization.Bundleable.create(Unknown Source:25)
androidx.car.app.utils.RemoteUtils.lambda$sendFailureResponseToHost$4
androidx.car.app.utils.RemoteUtils$$InternalSyntheticLambda$1$00787579f7b110f935892f6d3a11e0cf6af59cc35bc9b41a1e55d24116f40963$0.call$bridge
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.dispatchCallToHostForResult(Unknown Source:36)
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.dispatchCallToHost(Unknown Source:0)
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.sendFailureResponseToHost(Unknown Source:12)
at androidx.car.app.activity.renderer.surface.RemoteProxyInputConnection$$ExternalSyntheticLambda6.androidx.car.app.utils.RemoteUtils.lambda$sendSuccessResponseToHost$3(Unknown Source:71)
androidx.car.app.utils.RemoteUtils$$InternalSyntheticLambda$1$00787579f7b110f935892f6d3a11e0cf6af59cc35bc9b41a1e55d24116f40963$0.call$bridge
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.dispatchCallToHostForResult(Unknown Source:36)
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.dispatchCallToHost(Unknown Source:0)
at kotlinx.coroutines.DebugStringsKt.androidx.car.app.utils.RemoteUtils.sendSuccessResponseToHost(Unknown Source:12)
at androidx.car.app.CarAppService$CarAppBinder.getAppInfo(Unknown Source:11)
at androidx.car.app.ICarApp$Stub.onTransact(Unknown Source:58)
at android.os.Binder.execTransactInternal(Binder.java:1285)
at android.os.Binder.execTransact(Binder.java:1244)
Caused by: java.lang.NoSuchMethodException: androidx.car.app.FailureResponse.<init> []
at java.lang.Class.getConstructor0(Class.java:2363)
at java.lang.Class.getDeclaredConstructor(Class.java:2201)
at androidx.car.app.serialization.Bundler.serializeObject(Unknown Source:15)

All of this code is in the Jetpack Car App library and I don’t call any of this code directly from my app. This stack trace is not being reported as a crash on Google Play or in my crash tracking software, so I believe Jetpack has its own handling for this type of crash.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật