It works great also with the other expo modules on iOS without any issues at all but I am so confused why it is not working on Android. I am getting errors that I can’t find any reference related to it. I install the module with the command npx install-expo-modules@latest and check the documentation trying to install it manually but still getting errors.
This is what exactly showing on the terminal when I run ./gradlew build:
cannot find symbol ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED)
Hi! Yes, because the application is actually owned by the company where I am working that I am developing, and I was looking for a module that can generate PDF files for both iOS and Android.
I have no issue with it. Well, in fact, when I used the module on iOS, it worked flawlessly. However, when I tried it on Android by simply running the command ./gradlew build, it failed and I received the error shown in the image.
Is there anything I could do? Please, I hope there is
I see. So this was a plain React Native app and now you’re trying to add some Expo modules to it.
That should definitely work, but I have not tried it myself.
So I assume you installed Expo SDK 44 because the app was built with React Native 0.64.4?
I’m afraid I don’t know why you would be getting the error you’re getting. I’d be interested to know what your dependencies and devDependencies from package.json are and whether any of them have been patched or anything like that. Also, whether the app has any custom native code.
If it doesn’t have custom native code, I’d be tempted to do this:
Create a new Expo app (e.g. npx create-expo-app or yarn create expo-app)
Install your dependencies using npx expo install xxx. Don’t worry about the JavaScript code yet.
Build the app using eas build -p android --profile development
If that builds, then you can add in the JavaScript code.
The Expo SDK 44 was automatically installed after using the documentation’s recommended easiest way to setup with the command: npx install-expo-modules@latest. I confirmed it by starting a new React Native project with the same version and following the documentation’s instructions. The same error from the preceding image was also displayed.
I apologize for not being able to determine whether the app contains any custom native code, and I was also unable to implement the suggested solution because the application was already built and they simply kept adding features to it.
The items listed in ‘package.json’ from the test project are as follows.
EDIT:
The function from above was auto generated by the npx install-expo-modules@latest command which is different from the suggested from the documentation here (from android configuration MainActivity.java part): Add Expo to an existing project - Expo Documentation
I am still confused; either way, it doesn’t work, whether it is set up automatically or manually.
All in all, thank you for replying on my queries!!