pchmn / expo-material3-theme

Manage Material 3 theme in your React Native App
MIT License
61 stars 1 forks source link

Android not building on latest version #14

Open spaceofnova opened 1 week ago

spaceofnova commented 1 week ago

I can't seem to get android to build on the latest version (I have not tested IOS)

> Task :expo:compileDebugJavaWithJavac FAILED
/home/~/Projects/flowspace/node_modules/expo/android/build/generated/expo/src/main/java/expo/modules/ExpoModulesPackageList.java:23: error: cannot access ExpoMaterial3ThemeModule
            expo.modules.material3theme.ExpoMaterial3ThemeModule.class,
                                       ^
  bad class file: /home/~/Projects/flowspace/node_modules/@pchmn/expo-material3-theme/android/build/intermediates/compile_library_classes_jar/debug/classes.jar(/expo/modules/material3theme/ExpoMaterial3ThemeModule.class)
    class file has wrong version 65.0, should be 61.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.
1 error
pchmn commented 1 week ago

It happens when you run expo run:android ?

Did you do a expo prebuild --platform android before running it ?

spaceofnova commented 1 week ago

Sorry for the late reponse but this is the order of stuff I do:

  1. Install it through expo
  2. Prebuild for android
  3. npx expo run:android fails to build