distriqt / ANE-AndroidSupport

Android Support Library Native Extension
https://airnativeextensions.com
22 stars 4 forks source link

Error: 'io.reactivex' required by the application was not found for the target platform. #24

Closed megajogos closed 1 year ago

megajogos commented 2 years ago

We have configured our project with APM but when we try to build the Android APK we got the following error:

An implementation for native extension 'io.reactivex' required by the application was not found for the target platform.

marchbold commented 2 years ago

Can you provide some context to this error, what extensions are you using in your application? If you post the project.apm that could be helpful.

apm won't remove extensions from your extension list if you are updating an existing application descirptor. So if you previously had this extension in there and it is not required by any of the packages you are using you may have to manually remove it.

shaymolho commented 2 years ago

this happens to me: An implementation for native extension 'com.bumptech.glide' required by the application was not found for the target platform.

project.apm: project.zip

marchbold commented 2 years ago

@shaymolho I'd suggest you check you've run the install and are pointing your build process to the ane folder created by apm. I've just done a check on your project file and it correctly downloads the glide ane.

shaymolho commented 2 years ago

yes that was the problem, thanks

shaymolho commented 2 years ago

Now I'm getting this: ERROR:D8: java.lang.NullPointerException: Cannot invoke "com.android.tools.r8.graph.C.O()" because "<local1>" is null I sent an email to info@distriqt.com with the adt logs

marchbold commented 2 years ago

Looks like you have a lot of duplicate classes in there, are you including multiple versions of the ane's in your build? Or ANEs from another provider - not via apm?

shaymolho commented 2 years ago

I'm also including appsflyer ANE https://github.com/AppsFlyerSDK/AdobeAirExtension-AppsFlyer manually (not via APM)

shaymolho commented 2 years ago

Yes this was the issue, after using the strict Appsflyer ANE there were no more duplication errors

marchbold commented 2 years ago

Not sure what the "strict" version is but we normally use the AppsFlyerAIRExtension-witout-gp-support.ane. The "without gp support" ANE doesn't have the Google Play Services and AndroidX/AndroidSupport libs included. Their main ANE includes these libraries and causes the conflicts.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.