On this page
Guides
How to Make an Android App
Use Android Studio to create a Phone & Tablet project in Kotlin.
Copy
ComPDFkitConversion.aar
to thelibs
directory of the app.Add the following code into the app’s "build.gradle" file.
groovyandroid{ ... defaultConfig { ... ndk { abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64" } } ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } } dependencies { implementation(fileTree('libs')) //implementation fileTree(dir: 'libs', includes: ['*.aar']) //implementation(name: 'ComPDFKitConversion', ext: 'aar') ... }
Apply for read and write permissions in "AndroidManifest.xml".
xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />