Я пытаюсь использовать Flutter_stripe < /code> версию 11.4.0 в моем приложении Flutter, но полоса не может инициализировать со следующей ошибкой:
Код: Выделить всё
PlatformException(flutter_stripe initialization failed, The plugin failed to initialize: Your theme isn't set to use Theme.AppCompat or Theme.MaterialComponents. Please make sure you follow all the steps detailed inside the README: https://github.com/flutter-stripe/flutter_stripe#androidКод: Выделить всё
flutter:
sdk: flutter
flutter_stripe: ^11.4.0
Код: Выделить всё
android:label="flutter_bjj_insight"
android:icon="@mipmap/ic_launcher">
< /code>
[b] конфигурация стилей (styles.xmlКод: Выделить всё
@drawable/launch_background
@color/colorPrimary
@color/colorPrimaryDark
@color/colorAccent
< /code>
[b] зависимости Gradle (android/app/build.gradleКод: Выделить всё
implementation platform('com.google.firebase:firebase-bom:33.7.0')
implementation 'com.google.firebase:firebase-auth-ktx'
implementation 'com.google.android.gms:play-services-auth:20.7.0'
implementation 'com.stripe:stripe-android:20.11.0'
}
< /code>
[b] зависимости Gradle (android/build.gradlerepositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.21'
classpath 'com.google.gms:google-services:4.3.15'
}
}
< /code>
Действия, предпринятые < /h3>
Проверенная конфигурация темы < /li>
Протестировано на реальном устройстве и эмуляторе < /li>
Полностью переосмысленный флаттер < /li>
Я проверил этот разговор github < /li>
< /br />
/> Вопрос < /h3>
Даже после применения всех этих исправлений ошибка инициализации сохраняется.
Есть ли какая -либо известная проблема с Flutter_stripe 11.4.0 < /code> на последних версиях Flutter или Android?
Подробнее здесь: https://stackoverflow.com/questions/794 ... components
Мобильная версия