zoukankan      html  css  js  c++  java
  • android studio 配置spatialite for android

    该问题大概折腾了我5个晚上,网络上教程少的可怜,从网上下载了包结果提示os文件有误,从官网下载了最新版本后终于解决,记录一下这几个晚上掉的头发

    结构如下图

    build.gradle

    android {
        compileSdkVersion 30
        buildToolsVersion "30.0.2"
        defaultConfig {
            applicationId "com.example.spatialite1"
            minSdkVersion 16
            targetSdkVersion 30
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
            ndk {
                abiFilters "armeabi-v7a", "x86", "armeabi"
            }
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
        sourceSets.main{
            jniLibs.srcDirs = ['src/jniLibs']
        }
        splits {
            abi {
                enable true
                reset()
                include "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
                universalApk true
            }
        }
    }
    
    dependencies {
        implementation 'com.vividsolutions:jts-core:1.14.0'
        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.0.2'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        testImplementation 'junit:junit:4.12'
        androidTestImplementation 'androidx.test.ext:junit:1.1.0'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    }

    下载地址

    链接:https://pan.baidu.com/s/1jvvOrTV6IpKrkvW74lUWkA
    提取码:7cy7

  • 相关阅读:
    Android Fragment和FragmentActivity区别和用法
    百度地图
    test
    Activity的跳转与传值
    判断Android应用是否安装、运行
    爬取当当网 Top 500 本五星好评书籍
    TED-WordCloud: 4000+视频标题词云分析
    记第一个爬虫
    requests-html简介
    用requests-html爬取7000+PDF
  • 原文地址:https://www.cnblogs.com/jiang2020/p/14674542.html
Copyright © 2011-2022 走看看