ios_adquest

A new Flutter plugin project.

Getting Started

This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

Android 集成注意事项

1. 最低 SDK 版本要求

插件依赖的部分广告 SDK 要求 minSdkVersion >= 24,请在你的项目 android/app/build.gradle(.kts) 中设置:

android {
    defaultConfig {
        minSdkVersion 24 // 或 minSdk = 24
    }
}

2. NDK 版本要求

插件依赖的部分广告 SDK 要求 ndkVersion = "27.0.12077973",请在 android/app/build.gradle(.kts) 中设置:

android {
    ndkVersion = "27.0.12077973"
}

3. Manifest 合并冲突处理

如果遇到 Manifest 合并报错(如 label、allowBackup 冲突),请在 android/app/src/main/AndroidManifest.xml<application> 标签中添加:

<application
    ...
    tools:replace="android:label,android:allowBackup"
    android:allowBackup="true"
    ...>

并确保 <manifest> 标签包含:

<manifest ... xmlns:tools="http://schemas.android.com/tools">

4. 常见错误与解决方法

  • Manifest merger failed: 见上述配置
  • minSdkVersion too low: 提升到 24
  • NDK version mismatch: 设置为 27.0.12077973

如有疑问请参考 Flutter 官方文档 或提交 issue。