-
Notifications
You must be signed in to change notification settings - Fork 1
Issue in android - Unresolved reference: PLUGIN_VERSION #51
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
Comments
After changing the minSdkVersion to 28 am getting this error in console e: /Users/narendran/.pub-cache/hosted/pub.dev/teads_sdk_flutter-1.0.4/android/src/main/kotlin/tv/teads/teadssdkflutter/teads_sdk_flutter/FLTTeads.kt: (60, 38): Unresolved reference: PLUGIN_VERSION FAILURE: Build failed with an exception.
BUILD FAILED in 6s My Version as below [✓] Flutter (Channel stable, 3.22.2, on macOS 14.1 23B2073 darwin-arm64, locale en-IN) [✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.1) [✓] Connected device (5 available) [✓] Network resources • No issues found! |
I am facing the issue while running teads example code in android
Below is my 1st error
uses-sdk:minSdkVersion 21 cannot be smaller than version 28 declared in library [:teads_sdk_flutter]
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project's minSdk version to at least 28,
or use tools:overrideLibrary="tv.teads.teadssdkflutter.teads_sdk_flutter" to force usage (may lead to runtime failures)
FAILURE: Build failed with an exception.
Execution failed for task ':app:processDebugMainManifest'.
Flutter Fix ─────────────────────────────────────────────────────────────────────────────────┐
The plugin teads_sdk_flutter requires a higher Android SDK version.
Fix this issue by adding the following to the file
/StudioProjects/teads/android/app/build.gradle:
android {
defaultConfig {
minSdkVersion 28
}
}
Following this change, your app will not be available to users running Android SDKs below 28. │
Consider searching for a version of this plugin that supports these lower versions of the │
Android SDK instead.
The text was updated successfully, but these errors were encountered: