mapbox / mapbox-vision-android-teaser

Other
29 stars 13 forks source link

The app fails to launch with a pendingIntent error. #232

Open hina9 opened 1 year ago

hina9 commented 1 year ago

jonathanmcfarland I want to develop AR navigation by analyzing the teaser app and checking the content. The app won't launch due to a pendingIntent error in ArReplayNavigationActivity.kt, the page where AR seems to be implemented.

Initially, the build was not running due to a gradle error and I fixed it,

The second time, it didn't build, so we fixed it by deleting 'kotlin-android-extensions' in gradle,

Third, the app didn't install after building, so I exported the manifest and updated the gradle debugImplementation version.

This time "Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles." An error occurred.

pendingIntent is included as an argument in an overridden function, which prevents the setting from being defined,

Am I missing something?

화면 캡처 2023-06-30 135226