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

  • 相关阅读:
    jQuery 选择器
    http statusCode(状态码)含义
    JS实现拖拽效果
    Sql Service中的分页
    SQL Server中一些不常见的查询
    游标的基本写法
    doT.js
    关于GridView中控件的问题
    Sql Server创建函数
    ASP.NET中Ajax的用法
  • 原文地址:https://www.cnblogs.com/jiang2020/p/14674542.html
Copyright © 2011-2022 走看看