You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm in the process of creating an application for Android Auto using react-native-carplay. Unfortunately, the documentation lacks details on configuring the TabBarTemplate. To work around this, I delved into the library's code to understand its functionality. Based on my findings, I've established the following configuration:
However, When I run the app, it throws this error: java.lang.IllegalArgumentException: Missing required action types: APP_ICON, at androidx.car.app.model.constraints.ActionsConstraints.validateOrThrow(ActionsConstraints.java:394) at androidx.car.app.model.TabTemplate$Builder.setHeaderAction(TabTemplate.java:235) at org.birkir.carplay.parser.RCTTabTemplate.parse(RCTTabTemplate.kt:32) at org.birkir.carplay.parser.RCTTabTemplate.parse(RCTTabTemplate.kt:11) at org.birkir.carplay.parser.TemplateParser.parse(TemplateParser.kt:30) at org.birkir.carplay.CarPlayModule.parseTemplate(CarPlayModule.kt:92) at org.birkir.carplay.CarPlayModule.createScreen(CarPlayModule.kt:284) at org.birkir.carplay.CarPlayModule.getScreen(CarPlayModule.kt:294) at org.birkir.carplay.CarPlayModule.setRootTemplate$lambda$2(CarPlayModule.kt:139) at org.birkir.carplay.CarPlayModule.$r8$lambda$cp18Ybhsx4k_Ka2Moa-_hKNT4FY(Unknown Source:0) at org.birkir.carplay.CarPlayModule$$ExternalSyntheticLambda5.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8061) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Can anyone with experience with Android Auto help me? Thank you, buddy, so much!!!
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm in the process of creating an application for Android Auto using react-native-carplay. Unfortunately, the documentation lacks details on configuring the TabBarTemplate. To work around this, I delved into the library's code to understand its functionality. Based on my findings, I've established the following configuration:
`
However, When I run the app, it throws this error:
java.lang.IllegalArgumentException: Missing required action types: APP_ICON, at androidx.car.app.model.constraints.ActionsConstraints.validateOrThrow(ActionsConstraints.java:394) at androidx.car.app.model.TabTemplate$Builder.setHeaderAction(TabTemplate.java:235) at org.birkir.carplay.parser.RCTTabTemplate.parse(RCTTabTemplate.kt:32) at org.birkir.carplay.parser.RCTTabTemplate.parse(RCTTabTemplate.kt:11) at org.birkir.carplay.parser.TemplateParser.parse(TemplateParser.kt:30) at org.birkir.carplay.CarPlayModule.parseTemplate(CarPlayModule.kt:92) at org.birkir.carplay.CarPlayModule.createScreen(CarPlayModule.kt:284) at org.birkir.carplay.CarPlayModule.getScreen(CarPlayModule.kt:294) at org.birkir.carplay.CarPlayModule.setRootTemplate$lambda$2(CarPlayModule.kt:139) at org.birkir.carplay.CarPlayModule.$r8$lambda$cp18Ybhsx4k_Ka2Moa-_hKNT4FY(Unknown Source:0) at org.birkir.carplay.CarPlayModule$$ExternalSyntheticLambda5.run(Unknown Source:4) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8061) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:656) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Can anyone with experience with Android Auto help me? Thank you, buddy, so much!!!
The text was updated successfully, but these errors were encountered: