skip to Main Content

Android Studio – R8 full mode throws class cast exception AGP 8.0

I recently upgraded to Android Studio Flamingo and AGP 8.0 My production builds with minfiy and shrinkResources enabled, doesn't allow retrofit to make calls. This is the error thrown. java.lang.ClassCastException: java.lang.Class cannot be cast to java.lang.reflect.ParameterizedType at retrofit2.HttpServiceMethod.parseAnnotations(HttpServiceMethod.java:46) at retrofit2.ServiceMethod.parseAnnotations(ServiceMethod.java:39)…

VIEW QUESTION

Passing navigation into function in react native

Previous developer was passing null for whatever reason which gives: TypeError: null is not an object evaluating tabNavigation.navigate. Here is the code: import { NavigationRef } from './RootNavigation'; const renderBackToDashboard = (tabNavigation: any) => { return <HeaderBackButton tintColor={defaultOptions.headerTintColor||'white'} labelVisible={defaultOptions.headerBackTitleVisible||false} onPress={()…

VIEW QUESTION
Back To Top
Search