flutter_applovin_max icon indicating copy to clipboard operation
flutter_applovin_max copied to clipboard

AppLovinPrivacySettings error on android

Open mhanzla80 opened this issue 2 years ago • 8 comments

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 ?

mhanzla80 avatar Jul 19 '22 13:07 mhanzla80

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

andalasid avatar Jul 21 '22 05:07 andalasid

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

Amit9071 avatar Aug 23 '22 06:08 Amit9071

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

thomasmso avatar Aug 23 '22 07:08 thomasmso

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?

Amit9071 avatar Aug 23 '22 07:08 Amit9071

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

thomasmso avatar Aug 23 '22 08:08 thomasmso

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

imyogisingh avatar Sep 06 '22 11:09 imyogisingh

Facing the same issue.

anandyadav21219 avatar Oct 01 '22 04:10 anandyadav21219

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

anandyadav21219 avatar Oct 01 '22 13:10 anandyadav21219