Open kamrancr7 opened 4 years ago
following is my android/build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.3.50'
apply from: rootProject.file('dependencies.gradle')
repositories {
google()
jcenter()
maven { url 'https://maven.fabric.io/public' }
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}"
classpath 'com.google.gms:google-services:4.3.0'
classpath 'io.fabric.tools:gradle:1.29.0'
classpath "com.github.ben-manes:gradle-versions-plugin:0.20.0"
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://jitpack.io" }
maven { url "https://github.com/jitsi/jitsi-maven-repository/raw/master/releases" }
}
apply from: rootProject.file('dependencies.gradle')
}
rootProject.buildDir = '/build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
following is my android/app/build.gradle:
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def taskRequests = getGradle().getStartParameter().getTaskRequests().toString()
def isPlay = !(taskRequests.contains("Foss") || taskRequests.contains("foss"))
def flutterRoot = localProperties.getProperty('flutter.sdk')
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
apply plugin: "com.android.application"
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: "com.github.ben-manes.versions"
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
android {
compileSdkVersion versions.compileSdk
buildToolsVersion versions.buildTools
defaultConfig {
applicationId "com.example.iamflexiapp"
minSdkVersion versions.minSdk
targetSdkVersion versions.targetSdk
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
def gitSha = 'git rev-parse --short HEAD'.execute([], project.rootDir).text.trim()
buildConfigField "String", "GIT_SHA", "\"${gitSha}\""
javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
// For Jitsi
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
}
signingConfigs {
release {
storeFile project.rootProject.file('Rocket.jks').getCanonicalFile()
storePassword System.getenv("KEYSTORE_PASSWORD")
keyAlias System.getenv("KEY_ALIAS")
keyPassword System.getenv("KEY_PASSWORD")
}
debug {
storeFile project.rootProject.file('debug.keystore').getCanonicalFile()
storePassword "android"
keyAlias "androiddebugkey"
keyPassword "android"
}
}
buildTypes {
release {
buildConfigField "String", "REQUIRED_SERVER_VERSION", '"0.62.0"'
buildConfigField "String", "RECOMMENDED_SERVER_VERSION", '"0.64.2"'
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
buildConfigField "String", "REQUIRED_SERVER_VERSION", '"0.62.0"'
buildConfigField "String", "RECOMMENDED_SERVER_VERSION", '"0.64.2"'
signingConfig signingConfigs.debug
applicationIdSuffix ".dev"
}
}
flavorDimensions "type"
productFlavors {
// includes proprietary libs
play {
dimension "type"
}
// only FOSS
foss {
dimension "type"
}
}
packagingOptions {
exclude 'META-INF/core.kotlin_module'
exclude 'META-INF/main.kotlin_module'
exclude 'META-INF/proguard/coroutines.pro'
}
lintOptions {
lintConfig file("src/main/res/xml/lint.xml")
}
}
flutter {
source '../..'
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':player')
implementation project(':emoji')
implementation project(':draw')
implementation project(':util')
implementation project(':core')
implementation project(':suggestions')
implementation libraries.kotlin
implementation libraries.coroutinesCore
implementation libraries.coroutinesAndroid
implementation libraries.appCompat
implementation libraries.recyclerview
implementation libraries.constraintlayout
implementation libraries.cardview
implementation libraries.browser
implementation libraries.androidKtx
implementation libraries.fragmentsKtx
implementation libraries.dagger
implementation libraries.daggerSupport
kapt libraries.daggerProcessor
kapt libraries.daggerAndroidApt
implementation libraries.flexbox
implementation libraries.material
implementation libraries.room
kapt libraries.roomProcessor
implementation libraries.lifecycleExtensions
kapt libraries.lifecycleCompiler
implementation libraries.viewmodelKtx
implementation libraries.workmanager
implementation libraries.livedataKtx
implementation libraries.rxKotlin
implementation libraries.rxAndroid
implementation libraries.moshi
implementation libraries.okhttp
implementation libraries.okhttpLogger
implementation libraries.timber
implementation libraries.threeTenABP
kapt libraries.kotshiCompiler
implementation libraries.kotshiApi
implementation libraries.fresco
api libraries.frescoOkHttp
implementation libraries.frescoAnimatedGif
implementation libraries.frescoWebP
implementation libraries.frescoAnimatedWebP
implementation libraries.frescoImageViewer
implementation libraries.markwon
implementation libraries.aVLoadingIndicatorView
implementation libraries.glide
implementation libraries.glideTransformations
implementation (libraries.jitsi) { transitive = true }
implementation 'com.google.code.findbugs:jsr305:3.0.2'
// Proprietary libraries
playImplementation libraries.fcm
playImplementation libraries.firebaseAnalytics
playImplementation (libraries.firebaseCrashlytics) { transitive = true }
playImplementation (libraries.firebaseAnswers) { transitive = true }
playImplementation libraries.dynamiclinks
playImplementation libraries.playServicesAuth
testImplementation libraries.junit
testImplementation libraries.truth
androidTestImplementation libraries.espressoCore
androidTestImplementation libraries.espressoIntents
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation "androidx.core:core-ktx:+"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
}
repositories {
mavenCentral()
}
androidExtensions {
experimental = true
}
// FIXME - build and install the sdk into the app/libs directory
// We were having some issues with the kapt generated files from the sdk when importing as a module
def sdk_location = project.properties['sdk_location'] ?: ""
task compileSdk(type: Exec) {
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
commandLine 'cmd', '/c', 'build-sdk.sh', sdk_location
} else {
commandLine './build-sdk.sh', sdk_location
}
}
preBuild.dependsOn compileSdk
if (isPlay) {
apply plugin: 'com.google.gms.google-services'
}
that's my MainActivity.kt file:
class MainActivity:FlutterActivity() {
override fun onCreate(savedInstanceState:Bundle?) {
FlutterMain.startInitialization(this);
super.onCreate(savedInstanceState)
GeneratedPluginRegistrant.registerWith(this)
Log.i("HomeActivity", "oncreate")
MethodChannel(flutterView, CHANNEL).setMethodCallHandler { call, result ->
if (call.method == "startNewActivity") {
email = call.argument<String>("email").toString()
password = call.argument<String>("password").toString()
startNewActivity()
}
}
}
private fun startNewActivity() {
val intent = Intent("applicationB.intent.action.Launch")
startActivity(intent)
}
companion object {
private val CHANNEL = "test_activity"
var email = "";
var password = "";
}
}
`
@kamrancr7 could you please fix the format of the code in your posts? Also take a look if it's not related to this https://github.com/flutter/flutter/issues/36576
@nicowernli check the code now, and when i create a new project and used that package then it is working fine but when i used that package in my existing application then the application is crashing on launch.
@jonasbark any solution?
Unless you can't provide a minimum project for me to reproduce it I cannot help you.
@jonasbark Well it works fine when i create a new project but when i implement this in my existing project it crashes. What files you required to reproduce that one?
A full project, as mentioned.
@jonasbark How can i share that? It's a big and private project
Strip your project to a bare minimum without any sensitive data.
ok @jonasbark will share with you
After add flutter_stripe_payment in my existing application, my project build successfully but when i run my my project then it crashes on launching the app on my mobile and gives me the following error:
11/18 22:40:12: Launching 'app' on OPPO CPH1819. $ adb shell am start -n "com.example.iamflexiapp.dev/com.example.iamflexiapp.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D Waiting for application to come online: com.example.iamflexiapp.dev | com.example.iamflexiapp.dev.test Waiting for application to come online: com.example.iamflexiapp.dev | com.example.iamflexiapp.dev.test Connecting to com.example.iamflexiapp.dev Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. I/zygote64: Late-enabling -Xcheck:jni W/ActivityThread: Application com.example.iamflexiapp.dev is waiting for the debugger on port 8100... I/System.out: Sending WAIT chunk Connected to the target VM, address: 'localhost:8600', transport: 'socket' I/zygote64: Debugger is active I/System.out: Debugger has connected I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/chatty: uid=10335(com.example.iamflexiapp.dev) identical 1 line I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/System.out: waiting for debugger to settle... I/chatty: uid=10335(com.example.iamflexiapp.dev) identical 2 lines I/System.out: waiting for debugger to settle... I/System.out: debugger has settled (1352) I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.ConscryptPlatform$configureTrustManager$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/conscrypt/ConscryptHostnameVerifier; at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter.buildIfSupported() (ConscryptSocketAdapter.kt:64) at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:45) at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:239) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:211) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:179) at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:180) at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:219) at okhttp3.OkHttpClient okhttp3.OkHttpClient$Builder.build() (OkHttpClient.kt:955) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule.provideOkHttpClient(chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule.kt:144) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.proxyProvideOkHttpClient(chat.rocket.android.dagger.module.AppModule, chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule_ProvideOkHttpClientFactory.java:52) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.provideInstance(chat.rocket.android.dagger.module.AppModule, javax.inject.Provider, javax.inject.Provider) (AppModule_ProvideOkHttpClientFactory.java:36) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:29) at java.lang.Object chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:11) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.provideInstance(javax.inject.Provider, javax.inject.Provider, javax.inject.Provider) (RocketChatClientFactory_Factory.java:36) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:28) at java.lang.Object chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:10) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.app.AppLifecycleObserver chat.rocket.android.dagger.DaggerAppComponent.getAppLifecycleObserver() (DaggerAppComponent.java:556) at com.example.iamflexiapp.RocketChatApplication chat.rocket.android.dagger.DaggerAppComponent.injectRocketChatApplication(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:923) at void chat.rocket.android.dagger.DaggerAppComponent.inject(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:913) at void com.example.iamflexiapp.RocketChatApplication.onCreate() (RocketChatApplication.kt:92) at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1119) at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:6187) at void android.app.ActivityThread.-wrap1(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1861) at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106) at void android.os.Looper.loop() (Looper.java:187) at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7042) at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:514) at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:888) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path: DexPathList[[zip file "/data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/lib/arm64, /data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter.buildIfSupported() (ConscryptSocketAdapter.kt:64) at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:45) at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:239) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:211) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:179) at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:180) at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:219) at okhttp3.OkHttpClient okhttp3.OkHttpClient$Builder.build() (OkHttpClient.kt:955) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule.provideOkHttpClient(chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule.kt:144) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.proxyProvideOkHttpClient(chat.rocket.android.dagger.module.AppModule, chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule_ProvideOkHttpClientFactory.java:52) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.provideInstance(chat.rocket.android.dagger.module.AppModule, javax.inject.Provider, javax.inject.Provider) (AppModule_ProvideOkHttpClientFactory.java:36) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:29) at java.lang.Object chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:11) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.provideInstance(javax.inject.Provider, javax.inject.Provider, javax.inject.Provider) (RocketChatClientFactory_Factory.java:36) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:28) at java.lang.Object chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:10) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.app.AppLifecycleObserver chat.rocket.android.dagger.DaggerAppComponent.getAppLifecycleObserver() (DaggerAppComponent.java:556) at com.example.iamflexiapp.RocketChatApplication chat.rocket.android.dagger.DaggerAppComponent.injectRocketChatApplication(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:923) at void chat.rocket.android.dagger.DaggerAppComponent.inject(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:913) at void com.example.iamflexiapp.RocketChatApplication.onCreate() (RocketChatApplication.kt:92) at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1119) at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:6187) at void android.app.ActivityThread.-wrap1(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1861) at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106) at void android.os.Looper.loop() (Looper.java:187) at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7042) at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:514) at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:888) I/zygote64: Rejecting re-init on previously-failed class java.lang.Class<okhttp3.internal.platform.ConscryptPlatform$configureTrustManager$1>: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/conscrypt/ConscryptHostnameVerifier; at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter.buildIfSupported() (ConscryptSocketAdapter.kt:64) at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:45) at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:239) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:211) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:179) at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:180) at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:219) at okhttp3.OkHttpClient okhttp3.OkHttpClient$Builder.build() (OkHttpClient.kt:955) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule.provideOkHttpClient(chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule.kt:144) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.proxyProvideOkHttpClient(chat.rocket.android.dagger.module.AppModule, chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule_ProvideOkHttpClientFactory.java:52) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.provideInstance(chat.rocket.android.dagger.module.AppModule, javax.inject.Provider, javax.inject.Provider) (AppModule_ProvideOkHttpClientFactory.java:36) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:29) at java.lang.Object chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:11) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.provideInstance(javax.inject.Provider, javax.inject.Provider, javax.inject.Provider) (RocketChatClientFactory_Factory.java:36) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:28) at java.lang.Object chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:10) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.app.AppLifecycleObserver chat.rocket.android.dagger.DaggerAppComponent.getAppLifecycleObserver() (DaggerAppComponent.java:556) at com.example.iamflexiapp.RocketChatApplication chat.rocket.android.dagger.DaggerAppComponent.injectRocketChatApplication(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:923) at void chat.rocket.android.dagger.DaggerAppComponent.inject(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:913) at void com.example.iamflexiapp.RocketChatApplication.onCreate() (RocketChatApplication.kt:92) at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1119) at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:6187) at void android.app.ActivityThread.-wrap1(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1861) at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106) at void android.os.Looper.loop() (Looper.java:187) at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7042) at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:514) at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:888) Caused by: java.lang.ClassNotFoundException: Didn't find class "org.conscrypt.ConscryptHostnameVerifier" on path: DexPathList[[zip file "/data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/lib/arm64, /data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:125) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379) at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) at okhttp3.internal.platform.android.SocketAdapter okhttp3.internal.platform.android.ConscryptSocketAdapter.buildIfSupported() (ConscryptSocketAdapter.kt:64) at void okhttp3.internal.platform.AndroidPlatform.<init>() (AndroidPlatform.kt:45) at okhttp3.internal.platform.Platform okhttp3.internal.platform.AndroidPlatform$Companion.buildIfSupported() (AndroidPlatform.kt:239) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.findPlatform() (Platform.kt:211) at okhttp3.internal.platform.Platform okhttp3.internal.platform.Platform$Companion.access$findPlatform(okhttp3.internal.platform.Platform$Companion) (Platform.kt:179) at void okhttp3.internal.platform.Platform.<clinit>() (Platform.kt:180) at void okhttp3.OkHttpClient.<init>(okhttp3.OkHttpClient$Builder) (OkHttpClient.kt:219) at okhttp3.OkHttpClient okhttp3.OkHttpClient$Builder.build() (OkHttpClient.kt:955) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule.provideOkHttpClient(chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule.kt:144) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.proxyProvideOkHttpClient(chat.rocket.android.dagger.module.AppModule, chat.rocket.android.util.HttpLoggingInterceptor, chat.rocket.android.util.BasicAuthenticatorInterceptor) (AppModule_ProvideOkHttpClientFactory.java:52) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.provideInstance(chat.rocket.android.dagger.module.AppModule, javax.inject.Provider, javax.inject.Provider) (AppModule_ProvideOkHttpClientFactory.java:36) at okhttp3.OkHttpClient chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:29) at java.lang.Object chat.rocket.android.dagger.module.AppModule_ProvideOkHttpClientFactory.get() (AppModule_ProvideOkHttpClientFactory.java:11) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.provideInstance(javax.inject.Provider, javax.inject.Provider, javax.inject.Provider) (RocketChatClientFactory_Factory.java:36) at chat.rocket.android.server.infrastructure.RocketChatClientFactory chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:28) at java.lang.Object chat.rocket.android.server.infrastructure.RocketChatClientFactory_Factory.get() (RocketChatClientFactory_Factory.java:10) at java.lang.Object dagger.internal.DoubleCheck.get() (DoubleCheck.java:47) at chat.rocket.android.app.AppLifecycleObserver chat.rocket.android.dagger.DaggerAppComponent.getAppLifecycleObserver() (DaggerAppComponent.java:556) at com.example.iamflexiapp.RocketChatApplication chat.rocket.android.dagger.DaggerAppComponent.injectRocketChatApplication(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:923) at void chat.rocket.android.dagger.DaggerAppComponent.inject(com.example.iamflexiapp.RocketChatApplication) (DaggerAppComponent.java:913) at void com.example.iamflexiapp.RocketChatApplication.onCreate() (RocketChatApplication.kt:92) at void android.app.Instrumentation.callApplicationOnCreate(android.app.Application) (Instrumentation.java:1119) at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:6187) at void android.app.ActivityThread.-wrap1(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1) at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1861) at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:106) at void android.os.Looper.loop() (Looper.java:187) at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:7042) at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2) at void com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run() (RuntimeInit.java:514) at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:888) D/NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true D/SoLoader: init start adding system library source: /vendor/lib D/SoLoader: adding system library source: /system/lib D/SoLoader: adding application source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/lib/arm64 flags = 0] D/SoLoader: adding backup source from : com.facebook.soloader.ApkSoSource[root = /data/data/com.example.iamflexiapp.dev/lib-main flags = 1] D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /system/lib flags = 2] D/SoLoader: Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /vendor/lib flags = 2] Preparing SO source: com.facebook.soloader.DirectorySoSource[root = /data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/lib/arm64 flags = 0] Preparing SO source: com.facebook.soloader.ApkSoSource[root = /data/data/com.example.iamflexiapp.dev/lib-main flags = 1] V/fb-UnpackingSoSource: locked dso store /data/user/0/com.example.iamflexiapp.dev/lib-main V/fb-UnpackingSoSource: deps mismatch on deps store: regenerating so store dirty: regenerating I/zygote64: Do partial code cache collection, code=30KB, data=25KB I/zygote64: After code cache collection, code=30KB, data=25KB Increasing code cache capacity to 128KB D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libRSSupport.so: deferring to libdir D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libagora-crypto.so: deferring to libdir D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libagora-rtc-sdk-jni.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libc++_shared.so: deferring to libdir D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libfb.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libflutter.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libfolly_json.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libgifimage.so: deferring to libdir D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libglog.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libglog_init.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libimagepipeline.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libjingle_peerconnection_so.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libjsc.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libjscexecutor.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libjsinspector.so: deferring to libdir D/ApkSoSource: not allowing consideration of lib/arm64-v8a/libreactnativejni.so: deferring to libdir not allowing consideration of lib/arm64-v8a/librsjni.so: deferring to libdir not allowing consideration of lib/arm64-v8a/librsjni_androidx.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libstatic-webp.so: deferring to libdir not allowing consideration of lib/arm64-v8a/libyoga.so: deferring to libdir V/fb-UnpackingSoSource: regenerating DSO store com.facebook.soloader.ApkSoSource Finished regenerating DSO store com.facebook.soloader.ApkSoSource V/fb-UnpackingSoSource: starting syncer worker V/fb-UnpackingSoSource: releasing dso store lock for /data/user/0/com.example.iamflexiapp.dev/lib-main (from syncer thread) not releasing dso store lock for /data/user/0/com.example.iamflexiapp.dev/lib-main (syncer thread started) D/SoLoader: init finish: 4 SO sources prepared init exiting E/ANR_LOG: >>> msg's executing time is too long Blocked msg = { when=-5s934ms what=110 target=android.app.ActivityThread$H obj=AppBindData{appInfo=ApplicationInfo{77b165f com.example.iamflexiapp.dev}} } , cost = 5877 ms >>>Current msg List is: Current msg <1> = { when=-5s928ms what=100 target=android.app.ActivityThread$H obj=ActivityRecord{cb3a8ac token=android.os.BinderProxy@6eb6975 {com.example.iamflexiapp.dev/com.example.iamflexiapp.MainActivity}} } Current msg <2> = { when=-5s181ms what=149 target=android.app.ActivityThread$H obj=android.os.BinderProxy@6eb6975 } Current msg <3> = { when=+9s657ms what=132 target=android.app.ActivityThread$H } E/ANR_LOG: >>>CURRENT MSG DUMP OVER<<< I/ResourceExtractor: Found extracted resources res_timestamp-1-1574019185341 Resource version mismatch res_timestamp-1-1574098831985 E/ActivityThread: Failed to find provider info for cn.teddymobile.free.anteater.den.provider I/zygote64: Do partial code cache collection, code=61KB, data=42KB I/zygote64: After code cache collection, code=61KB, data=42KB Increasing code cache capacity to 256KB I/ResourceExtractor: Extracted baseline resource assets/flutter_assets/kernel_blob.bin I/ResourceExtractor: Extracted baseline resource assets/flutter_assets/vm_snapshot_data I/ResourceExtractor: Extracted baseline resource assets/flutter_assets/isolate_snapshot_data I/SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@27cb8fb D/libEGL: ARC_TRACE: arc_initARCTraceLevel Active EGL Table is EglArcHook I/zygote64: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 W/GiFTMANAGER: OppoGiFTServiceManager::getGiFTPara nRetSize = 1 I/libARC: gli_eglCreateContextRet() tid:15452, ctx: 0x6f33092f90, ARC not Enabled. D/libEGL: ARC_TRACE: ARCASM_eglCreateContext() => ctx: 0x6f33092f90 D/libEGL: ARC_TRACE: ARCASM_eglMakeCurrent(ctx:0x6f33092f90) I/flutter: Observatory listening on http://127.0.0.1:36752/Yc42RBEkRfM=/ D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.iamflexiapp.dev, PID: 15452 java.lang.NoSuchMethodError: No direct method <init>(Landroid/app/Activity;Lio/flutter/plugin/common/PluginRegistry$Registrar;)V in class Lcom/facebook/react/bridge/ReactContextBaseJavaModule; or its super classes (declaration of 'com.facebook.react.bridge.ReactContextBaseJavaModule' appears in /data/app/com.example.iamflexiapp.dev-eJbym3Pid_3E_PC8Rq9sRA==/base.apk!classes3.dex) at com.gettipsi.stripe.StripeModule.<init>(StripeModule.java:80) at de.jonasbark.stripepayment.StripePaymentPlugin$Companion.registerWith(StripePaymentPlugin.kt:70) at de.jonasbark.stripepayment.StripePaymentPlugin.registerWith(Unknown Source:2) at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:47) at com.example.iamflexiapp.MainActivity.onCreate(MainActivity.kt:20) at android.app.Activity.performCreate(Activity.java:7235) at android.app.Activity.performCreate(Activity.java:7226) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2970) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3095) at android.app.ActivityThread.-wrap11(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:187) at android.app.ActivityThread.main(ActivityThread.java:7042) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:514) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:888) I/Process: Sending signal. PID: 15452 SIG: 9 Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
Looks like you are testing this in a Oppo F7 that doesn't have NFC
yes i tested this on Oppo F7 but the same is working fine on Oppo F7 when i create a new project.
Hello, do you remain with the issue? If so, try adding the following code to the android/gradle.properties file: android.useAndroidX=true android.enableJetifier=true
I am making a news app with volley and glide and had listed it in recycler view, with newsapi . But I am getting this same error
2021-02-22 01:53:47.492 12881-12907/com.example.newsfresh E/ActivityThread: Failed to find provider info for cn.teddymobile.free.anteater.den.provider 2021-02-22 01:53:48.606 12881-12909/com.example.newsfresh E/Volley: [14126] BasicNetwork.performRequest: Unexpected response code 403 for https://newsapi.org/v2/top-headlines?country=us&apiKey=b35a480ec85640fbbfba3e464c9daaf0 2021-02-22 01:53:49.117 12881-12909/com.example.newsfresh E/Volley: [14126] BasicNetwork.performRequest: Unexpected response code 403 for https://newsapi.org/v2/top-headlines?country=us&apiKey=b35a480ec85640fbbfba3e464c9daaf0
And I am running this in my OPPO A3S phone
just check for any other packages which uses React Native , for me in my case i was using Jitsi_meet along with Stripe_Payment , they have internal conflicts on React classes , wont work , i had to finally remove stripe completely t make a clean build.
After add flutter_stripe_payment in my existing application, my project build successfully but when i run my my project then it crashes on launching the app on my mobile and gives me the following error: