sentinel-official / sentinel

Sentinel is an interoperable secure network layer offering the Sentinel Service Chain exclusively for distributed & decentralized native services like - dVPN, Sentrix (dChat and dVoIP) and more.
https://Sentinel.co
MIT License
301 stars 59 forks source link

open failed enoent error #154

Open CoderoidAcademy opened 5 years ago

CoderoidAcademy commented 5 years ago

hi. i use Androidx to using of sentinel. but when i want to connect to a vpn, i get this error open failed ENOENT (No such file or directory). why?

CoderoidAcademy commented 5 years ago

Captusre

CoderoidAcademy commented 5 years ago

my gradle

apply plugin: 'com.android.application'

android { compileSdkVersion 28 buildToolsVersion '28.0.3'

sourceSets.main.jniLibs.srcDirs = ['./jni/']
sourceSets.main.assets.srcDirs = ['src/main/ovpnlibs/assets']
sourceSets.main.jni.srcDirs = [] //disable automatic ndk-build }

defaultConfig {
    applicationId "co.sentinel.sentinellite"
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName '1.0'
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    // Enable Vector drawable
    vectorDrawables.useSupportLibrary = true
    // Enabling multidex support.
    multiDexEnabled true
    // Enable ndk abi filters
    ndk {
        abiFilters "armeabi-v7a", "arm64-v8a", "x86_64", "x86"
    }
}
buildTypes {
    release {
        minifyEnabled false
        useProguard false

// proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } compileOptions { targetCompatibility JavaVersion.VERSION_1_8 sourceCompatibility JavaVersion.VERSION_1_8 }

lintOptions {
    checkReleaseBuilds false // Add this
    abortOnError false
}

}

dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') // Android Support Libs // implementation "com.android.support:appcompat-v7:$supportLibVersion" implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta1' // implementation "com.android.support:design:$supportLibVersion" // implementation "com.android.support:cardview-v7:$supportLibVersion" // implementation "com.android.support:support-v4:$supportLibVersion" // Android Arch Components - ViewModel, LiveData & Room implementation 'android.arch.lifecycle:extensions:1.1.1' implementation 'android.arch.persistence.room:runtime:1.1.1' annotationProcessor "android.arch.lifecycle:compiler:1.1.1" annotationProcessor "android.arch.persistence.room:compiler:1.1.1" // Google Play Services Lib implementation 'com.google.android.gms:play-services-base:16.0.1' // Retrofit implementation 'com.squareup.retrofit2:retrofit:2.5.0' implementation 'com.squareup.retrofit2:converter-gson:2.5.0' implementation 'com.squareup.okhttp3:okhttp-urlconnection:3.11.0' implementation 'com.squareup.okhttp3:logging-interceptor:3.14.0' // GSON implementation 'com.google.code.gson:gson:2.8.5' // LoadingView implementation 'com.wang.avi:library:2.1.3' // FlagView implementation 'com.github.KaKaVip:Android-Flag-Kit:v0.1' // ViewPagerIndicator implementation('com.tbuonomo.andrui:viewpagerdotsindicator:3.0.3') { exclude group: 'com.android.support', module: 'support-dynamic-animation' } // Amplitude Analytics implementation 'com.amplitude:android-sdk:2.21.0' // Android Test Libs implementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12' // androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' implementation "com.google.android.material:material:1.1.0-alpha06" }