Error description
After the App builds successfully, I got this error at my Metro while trying to install the app.
My react-native version is 0.70.
This the error:
Error: Exception in HostFunction: java.lang.UnsatisfiedLinkError: dlopen failed: library "libreanimated.so" not found
This can happen for other reasons as well. For me, it happened because in the
android\gradle.properties file I did not enable the Architecture that I was trying to deploy to:
reactNativeArchitectures=armeabi-v7a,arm64-v8a,x86,x86_64
Make sure, the Emulator Arch or if you are using a physical device then that Arch is enabled in the above line.
The error is coming because of react-native-reanimated library either remove the library or
Use latest version
And
Go to root folder
cd android && ./gradlew clean
or check this
https://github.com/software-mansion/react-native-reanimated/pull/3551/commits/25defa25d22a50dc068ac720ac4f3d7bde76aa17
I think you didn't add the proguard rules inside the android app folder and follow the instructions they had given on the website
https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation
Moreover, if you are using the react native version 0.68 & docs say to install the library which react native reanimated#next but it produces an error (merging error with the Hermes) until now there is no stable version of the reanimated library for the react native v0.70. Installing the lower version(stable version) is a better move than doing with the latest version
Related
For the last few days, I have been trying to build a testing project for android using the default build method but I just keep recieving errors and not knowing how to fix them.
Short Error and Full Error Decscription. Also I am using Unity 5.6.7f1 with Admob plugins (And yes because my pc is shit so I use this version)
So I want to ask is there an alternative way for building an android app with Unity. I have heard about exporting the project to gradle and building it using Android Studio. But I don't know how.
If you know an alternative way or how to build the project with Android Studio or how to fix the error PLEASE ANSWER. I am having a nightmare with building this stupid test project to Android
The problem is your jdk(1.8.0_311) is too new to support legacy build command from Unity (5.6.7f1).
Two method to solve:
Install older jdk
if you don't know which version you should use. You may use the default jdk with Unity installer in preferences. (I'm not sure 5.6.7f1 is supported).
Export android project
You can export android project by check the "Export Project". Then use android studio to build apk.
i'm using ionic and i try to run my app in android studio. On Ios everything is working fine but android studio is always saying please add configuration. I actually have no idea how to add a configuration. Also my project contains three packages. I'm building my project with the following commands:
ionic build
npx cap sync
npx cap open android
Also android studio cannot resolve some libraries.
Please find attached a screenshot of the errors i have mentioned above:
thank you
I had this same issue, and I think it was a few problems compounded. It looks like you shouldn't have to add configurations manually, so if the "app" configuration doesn't appear automatically then something is wrong. I ran
ionic cap build android
which built everything and launched android studio. If that doesn't fix it, you might be missing some sdks. Try running this command from your android folder.
./gradlew assembleDebug
Mine complained about missing a specific version of the android sdk which I had to install with the android studio sdk manager. Then I relaunched android studio, and the "app" configuration was there.
I wonder why i can't find build bundle(s)/APK in my android studio, i am using Ionic, React and Capacitor to build my project before directing to complete my work in android studio, i am trying to extract an APK from my project, but i can't find any option on android studio to achieve this, these are all the options available in build item:
In all tutorials, i find people recommend going to build > build bundle(s)/APK, but this option is not available in android studio, I am using the latest version, what can be the problem??
the same thing happened to me, the compilation options do not appear because you do not have the same version of the SDK installed in android studio that you used in Ionic.
Im having trouble building my app through the build process of Telerik Appbuilder. We are using a modified version of the multi imagepicker plugin wich has a reference to the android-support-v4.jar in the plugin.xml, like so
<source-file src="src/android/Library/libs/android-support-v4.jar" target-dir="libs"/>
When I try to create a build via de Telerik AppBuilder option it gives the following error and doesnt complete the build.
android-support-v4.jar" already exists
When I remove the reference from the plugin.xml and try create a build again, it finishes the build without any errors but then the plugin does not work.
I've already tried to use the plugin in a cordova (5.4.1) test project and have build it via CLI commands. With cordova I can successfully build a test project with the plugin and the reference to the android support library in place. The test app deploys succesfully to my android device via cordova run android The plugin and its modifications are fully functional in the test project.
FYI => If I remove the android support library reference in the plugin.xml in the cordova test project the entire project does not build. I get loads of compiling errors.
Does anyone has had the same experience or has an indication of what causes the error when I build via the Telerik Appbuilder tools?
The error for conflicting android-support-v4.jar is caused by having incompatible plugins in your project. In order to use the latest available android support v4 library you should remove the jar from your plugin and replace the lib-file element of your plugin.xml with <framework src="com.android.support:support-v4:+" />.
Additionally, if you have other plugins which install their own version of the library, you'll have to either upgrade them to their latest version (which hopefully will have been fixed) or make the same modification in them. For more information on this issue you can refer to the following AppBuilder forum thread: http://www.telerik.com/forums/breaking-change-introduces-build-failure-for-android
I use Visual Studio 2015 to create Cordova project, but when I debug the solution, the VS told me:
Error DEP10402: Could not locate a deployable apk. You may need to build your project.
and I couldn't get any project apk.
Use Cordova CLI version 5.4.1 in config.xml platform tab.
This Error may occurred because of the incompatibility of cordova version,
check your installed cordova version bye entrig following
cordova -v
and make sure same version added to visual studio project, in config.xml -> platform -> cordova cli
I had the same issue with Visual Studio 2017 and Ionic 3. The cordova-cli 8 (if you use a global cordova-cli) copies the apk into another folder and hence VS doesn't find it. I added a copyapk script which is run after the build is completed.
https://github.com/hamburml/ionic3-vs2017-blank-template
it happened before with some versions of cordova-cli
try using 5.4.1 or 5.3.0
i experience this problem in 5.4.0 but it dose not appeared in 5.4.1
it seems that some cordova-cli versions did not use --release as it should be
How about try to clear solution from Project root and rebuild again.
Although it's an old question, in my case the problem was caused because of configuration name.
In my project I have several configuration names for different environments (local, dev, pro), when using one of this names, the problem occurs.
If configuration name is set to default "Debug" the error disappears, but then I lose easy environment configuration.
I had the issue and I finally manage to run my application after restarting my machine and avoiding to open any application. It looks like the problem does not arise when there's a lot of available memory...