Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failed on AndroidStudio #14

Open
eyalmnm opened this issue Sep 21, 2020 · 0 comments
Open

Build failed on AndroidStudio #14

eyalmnm opened this issue Sep 21, 2020 · 0 comments

Comments

@eyalmnm
Copy link

eyalmnm commented Sep 21, 2020

Hi,
While trying to build the lib i got and error
<instantiation>:11:9: error: unknown directive
Im using AndroidStudio 4.0.1
`apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'androidx.navigation.safeargs.kotlin'

android {
compileSdkVersion 30
buildToolsVersion "30.0.2"
useLibrary 'org.apache.http.legacy'

defaultConfig {
    applicationId "org.onaips.vnc"
    minSdkVersion 23
    targetSdkVersion 30
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
    }
}
externalNativeBuild {
    ndkBuild {
        path file('../../../droid-VNC-server-master/jni/Android.mk')
    }
}

}

dependencies {
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

}
`
Using NDK version 21.3.6528147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant