Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppLovinAdContentRating & AppLovinGender: import fails #645

Closed
Pimeko opened this issue Apr 2, 2024 · 1 comment
Closed

AppLovinAdContentRating & AppLovinGender: import fails #645

Pimeko opened this issue Apr 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Pimeko
Copy link

Pimeko commented Apr 2, 2024

MAX SDK Version

12.4.0

Device/Platform Info

Android Studio Iguana | 2023.2.1 Patch 1

Current Behavior

With Capacitor, I'm trying to build a mobile app but I get these errors in Android Studio:

myProject\android\capacitor-cordova-android-plugins\src\main\java\com\applovin\cordova\AppLovinMAX.java:29:
error: cannot find symbol
import com.applovin.sdk.AppLovinAdContentRating;
                       ^
  symbol:   class AppLovinAdContentRating
  location: package com.applovin.sdk
myProject\android\capacitor-cordova-android-plugins\src\main\java\com\applovin\cordova\AppLovinMAX.java:30:
error: cannot find symbol
import com.applovin.sdk.AppLovinAdContentRating;
                       ^
  symbol:   class AppLovinGender
  location: package com.applovin.sdk

The lines in question are:

import com.applovin.sdk.AppLovinAdContentRating;
import com.applovin.sdk.AppLovinGender;

I could build the app without any issue for the past 6 months up until last week, even though I didn't change anything on my end.
Any help is appreciated 🙏

Expected Behavior

Be able to build and run the application on Android.

How to Reproduce

package.json

  "dependencies": {
    "@awesome-cordova-plugins/applovin": "^6.3.0",
    "@capacitor/android": "^5.0.3",
    "@capacitor/app": "^5.0.2",
    "@capacitor/core": "^5.0.3",
    "@capacitor/haptics": "^5.0.4",
    "cordova-plugin-applovin-max": "^1.1.4"

build.gradle

dependencies {
    implementation 'com.applovin:applovin-sdk:+'

Then run:

npm run build
npx cap sync
npx cap open

Output:

√ Copying web assets from dist to android\app\src\main\assets\public in 551.84ms
√ Creating capacitor.config.json in android\app\src\main\assets in 1.94ms
[info] Found 3 Cordova plugins for android:
       [email protected]
       [email protected]
       [email protected]
√ copy android in 640.63ms
√ Updating Android plugins in 7.56ms
[info] Found 4 Capacitor plugins for android:
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
       @capacitor/[email protected]
\ update android [info] Found 3 Cordova plugins for android:
       [email protected]
       [email protected]
       [email protected]
√ update android in 115.31ms
[info] Sync finished in 0.761s
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
[info] Opening Android project at: android.

Then in Android Studio, click on "app" in the left hierarchy and try to generate an APK.

image

Additional Info

No response

@Pimeko Pimeko added the bug Something isn't working label Apr 2, 2024
@thomasmso thomasmso self-assigned this Apr 2, 2024
@thomasmso
Copy link
Member

Hey @Pimeko - 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. In the meantime, we can use AppLovin/AppLovin-MAX-Cordova#51 as the tracker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants