AppLovin / AppLovin-MAX-Cordova

MIT License
10 stars 12 forks source link

error: cannot find symbol import com.applovin.sdk.AppLovinAdContentRating #51

Open UzverNumber47 opened 1 month ago

UzverNumber47 commented 1 month ago

MAX Plugin Version

1.1.4

Cordova Version

12.0.1

Device/Platform Info

Android 12

Current Behavior

error: cannot find symbol import com.applovin.sdk.AppLovinAdContentRating

Expected Behavior

Should compile

How to Reproduce

Simply add a plugin cordova plugin add cordova-plugin-applovin-max

Additional Info

This is probably somehow connected with the latest release of applovin

Could please suggest a quick workaround?

UzverNumber47 commented 1 month ago

error: cannot find symbol com.applovin.sdk.AppLovinGender Is also affected.

However other sdk imports below are fine

import com.applovin.sdk.AppLovinMediationProvider; import com.applovin.sdk.AppLovinPrivacySettings; import com.applovin.sdk.AppLovinSdk; import com.applovin.sdk.AppLovinSdkConfiguration; import com.applovin.sdk.AppLovinSdkSettings; import com.applovin.sdk.AppLovinSdkUtils;

UzverNumber47 commented 1 month ago

Yes, the new Android SDK release is the issue.

The quick workaround will be replacing com.applovin:applovin-sdk:+ with com.applovin:applovin-sdk:12.3.1

thomasmso commented 1 month ago

Thanks for reporting this issue. This is due to Cordova plugin automatically pulling in our latest iOS/Android native SDKs. We'll have a fix out sometime today.

EMI-INDO commented 1 month ago

@thomasmso

I sent a pull request I hope you also update the plugin version in npm

Thank you sir

thomasmso commented 1 month ago

@EMI-INDO - Thanks for the PR, other priorities took precedence, I will check this out tomorrow.

thomasmso commented 1 month ago

Fixed it in v1.1.5: https://github.com/AppLovin/AppLovin-MAX-Cordova/releases/tag/release_1_1_5.

EMI-INDO commented 1 month ago

Yes in the near future I will update the Android and iOS code which will work on the latest SDK.