Eray
Eray

Reputation: 766

Access denied finding property "net.dns1" on Android

I am using agora video call on my app and getting bellow errors on Android physical devices and emulators. There is no any problem on iOS yet. So I believe it's not about app_id is not correct.

here is error:

D/agora-jni( 4883): android bridge create done...
E/libc    ( 4883): Access denied finding property "net.dns1"
E/libc    ( 4883): Access denied finding property "net.dns2"
E/libc    ( 4883): Access denied finding property "net.dns3"
E/libc    ( 4883): Access denied finding property "net.dns4"

this is my app/build.gradle file:

...

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 30

    sourceSets {
        main.java.srcDirs += 'src/main/kotlin'
    }

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        applicationId "..."
        minSdkVersion 19
        targetSdkVersion 30
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        multiDexEnabled true
    }

   ...

    signingConfigs {
        release {
            ...
        }
    }

    buildTypes {
        debug {
            minifyEnabled false
            shrinkResources false
        }
        release {
            signingConfig signingConfigs.release
            minifyEnabled true
            useProguard true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

flutter {
    source '../..'
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'com.google.firebase:firebase-analytics-ktx'
    implementation group: 'com.google.android.material', name: 'material', version: '1.4.0-alpha02'
    implementation platform('com.google.firebase:firebase-bom:27.1.0')
    implementation "androidx.multidex:multidex:2.0.0"
    implementation 'androidx.browser:browser:1.3.0'
}

apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'

I am using r8 shrink and proguard. My proguard-rules.pro file:

-keep class io.agora.**{*;}

And my gradle.properties file:

org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true
android.enableR8=true
android.bundle.enableUncompressedNativeLibs=false

My pubspec.yaml file:

permission_handler: ^6.1.1
agora_rtc_engine: ^3.1.3

Upvotes: 4

Views: 3986

Answers (1)

Omatt
Omatt

Reputation: 10539

The message Access denied finding property "net.dns" shown on logs is just a warning as mentioned on this GitHub issue thread and shouldn't cause issues running the app. What you can do here is check if there's a different cause of the issue. See if you're able to get the user id if you're able to join a channel successfully.

Upvotes: 1

Related Questions