Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

AppLovinPrivacySettings error on android #52

Open
mhanzla80 opened this issue Jul 19, 2022 · 8 comments
Open

AppLovinPrivacySettings error on android #52

mhanzla80 opened this issue Jul 19, 2022 · 8 comments

Comments

@mhanzla80
Copy link

AppLovinPrivacySettings error on android

Output:
`/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:80: error: cannot find symbol
AppLovinPrivacySettings.setHasUserConsent( call.argument("HasConsent"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:81: error: cannot find symbol
AppLovinPrivacySettings.setIsAgeRestrictedUser( call.argument("IsAgeRestricted"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
/Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java:82: error: cannot find symbol
AppLovinPrivacySettings.setDoNotSell( call.argument("DoNotSell"), context );
^
symbol: variable AppLovinPrivacySettings
location: class FlutterApplovinMaxPlugin
Note: /Users/hanzla/Development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_applovin_max-2.1.2/android/src/main/java/dev/iori/flutter_applovin_max/FlutterApplovinMaxPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':flutter_applovin_max:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.
`

** AppLovinPrivacySettings throwing error on android but working fine on iOS**
How do we have to solve this ?

@andalasid
Copy link

yes, I've got this issue too. Don't know how this happened. please help to fix this.

@Amit9071
Copy link

yes, I've got this issue too. anyone know solution how to resolve?

@thomasmso
Copy link

Feel free to migrate over to the official plugin: https://github.com/AppLovin/AppLovin-MAX-Flutter

@Amit9071
Copy link

Thanks @thomasmso for your response.
I used thhis official plugin. but i am facing one issue like when i use banner image it's not showing in column. it's showing on screen like top,bottom and center. i want to use in column. so you have idea?

@thomasmso
Copy link

Sorry, but we don't support displaying banner vertically.

@imyogisingh
Copy link

Fix this issue please 🙏 . The official plugin is not working properly.

@anandyadav21219
Copy link

Facing the same issue.

@anandyadav21219
Copy link

I have fixed the error by doing the below steps:

  • "flutter clean"
  • "flutter pub get"
  • Open the android folder in the new android studio window
  • Now run the app and you will get an error
  • I just rich out the line at error
  • you just need to change three lines of code(cross-check with the below image)
  • or try out the suggestion. it's the same as in flutter.
  • and I am good to go running the app.

I think this one is a temporary solution but working for me.

image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants