Category : linker

My project stops working after updating gradle. I’m using a C library in Android though JNI. Using Cmake to compile and join the libraries Before, it compiled and linked without a problem, but now there is an error at link time when building the project. It throw this error: /home/my_user/Documents/Proyects/optandroid/app/src/main/cpp/kotlin-jni.c:152: error: undefined reference to ‘find_best_order’ ..

Read more

Android 4.1.1 compiledSdkVersion 30 targetSdkVersion 30 minSdkVersion 24 Gradle: 6.5 Android Gradle Plugin: 4.1.1 Changing application id in build.gradle leads to attribute not found error during linking applicationId "com.myltd.asg.myappid" I tried changing the package name to the same value just for testing but it does not remove the error. I know that according to the ..

Read more

I am following this guide. https://developer.android.com/google/play/billing/integrate my build.gradle looks like this: dependencies { implementation fileTree(dir: ‘libs’, include: [‘*.jar’]) implementation "com.android.support:appcompat-v7:28.0.0" implementation "androidx.constraintlayout:constraintlayout:2.0.4" implementation "com.google.android.gms:play-services-ads:19.6.0" implementation "com.android.billingclient:billing:3.0.0" androidTestImplementation "com.android.support.test:runner:1.0.2" androidTestImplementation "com.android.support.test.espresso:espresso-core:3.0.2" } The Java code in Android Studios 4 does not have recommended imports for BillingClient If I try this: import android.billingclient … "billingclient" shows up ..

Read more

Recently switched our build targets to android 30 to add support for Android 11, now directions and call for phone are not working. The documentation mentions deep linking natively and or the use of an npm package. Would this be done natively? Or is the package an option? https://reactnative.dev/docs/linking Linking.canOpenURL is now returning false when ..

Read more

As you can see here, we implemented the in-app review feature on Android, but when a developer changes the Linker and Shrinker settings, we get a crash detailed below. My question is, do we need to make changes to the proguard file AND a LinkerPleaseInclude file? Also how to I know exactly what to add ..

Read more

As you can see here, we implemented the in-app review feature on Android, but when a developer changes the Linker to Link All and Shrinker to r8, we get a crash. The error message is as follows: Java.Lang.NoSuchMethodError: no non-static method "Lcom/google/android/play/core/review/c;.requestReviewFlow()Lcom/google/android/play/core/tasks/Task;" I was able to still use r8, d8 and Link All by adding ..

Read more

I’m getting this error about multiple definition of ‘__aeabi_ul2f’ when compiling a big project on Android using CMake. Apparently one of the places where the definition is found is is on libsmoltcp_cpp_interface_rust.a(compiler_builtins-5ae026d08032e786.compiler_builtins.2kv22hwk-cgu.127.rcgu.o): previous definition here which is some Rust code mixed with C++ compiled like this in CMake: add_custom_target( lib_smol_tcp_rust COMMAND echo "————-COMPILING LIBSMOLTCP_CPP_INTERFACE RELEASE ..

Read more

I’m getting this error about multiple definition of ‘__aeabi_ul2f’ when compiling a big project on Android using CMake. Apparently one of the places where the definition is found is is on libsmoltcp_cpp_interface_rust.a(compiler_builtins-5ae026d08032e786.compiler_builtins.2kv22hwk-cgu.127.rcgu.o): previous definition here which is some Rust code mixed with C++ compiled like this in CMake: add_custom_target( lib_smol_tcp_rust COMMAND echo "————-COMPILING LIBSMOLTCP_CPP_INTERFACE RELEASE ..

Read more