升级到 appsflyer_sdk 后:^6.15.1 我无法再在 Android 上运行我的 flutter 应用程序。
重现该行为的步骤:
下面是我遇到的众多错误的片段
bad class file: /Users/yonko/.gradle/caches/transforms-3/9dd547163521c1703fdc82b55e52e7bc/transformed/jetified-af-android-sdk-6.15.1-api.jar(/com/appsflyer/AFAdRevenueData.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
/.pub-cache/hosted/pub.dev/appsflyer_sdk-6.15.1/android/src/main/java/com/appsflyer/appsflyersdk/AppsflyerSdkPlugin.java:13: error: cannot access AFLogger
import com.appsflyer.AFLogger;
bad class file: /Users/yonko/.gradle/caches/transforms-3/9dd547163521c1703fdc82b55e52e7bc/transformed/jetified-af-android-sdk-6.15.1-api.jar(/com/appsflyer/AFLogger.class)
class file has wrong version 61.0, should be 55.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
/.pub-cache/hosted/pub.dev/appsflyer_sdk-6.15.1/android/src/main/java/com/appsflyer/appsflyersdk/AppsflyerSdkPlugin.java:14: error: cannot access AppsFlyerConsent
import com.appsflyer.AppsFlyerConsent;
^
flutter doctor 的输出
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.5, on macOS 14.5 23F79 darwin-arm64, locale en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.92.2)
[✓] VS Code (version 1.74.1)
[✓] VS Code (version 1.93.0)
[✓] Connected device (4 available)
[✓] Network resources
我已经更新了我的 java 版本,因为我们的 fastlane 管道上遇到了这个问题,升级 java 解决了这个问题。但它没有解决我的机器(macOS Sonoma 14.5)。 我还在 Appsflyer GitHub 线程
上提出了一个问题使用6.15.0 我的Android应用程序也使用appsflyer,6.15.1有问题。