eqgis / Sceneform-EQR

Sceneform-EQR 是EQ对谷歌“sceneform-android-sdk”的扩展,适用于图形和视频,以及增强现实(AR)和虚拟现实(VR)相关领域。它目前集成了 ARCore、AREngine 和 ORB-SLAM,提供多种场景选项,包括 AR 场景、VR 场景和自定义背景场景,以满足不同的原生三维开发需求。
GNU General Public License v3.0
10 stars 2 forks source link

A problem occurred configuring project ':eq-renderer'. #1

Closed BuKeNiDeAo closed 1 month ago

BuKeNiDeAo commented 1 month ago

Build file '/Users/liusheng/Downloads/Sceneform-EQR-main/Eq-Renderer/Android/eq-renderer/build.gradle' line: 109

A problem occurred configuring project ':eq-renderer'.

java.net.URISyntaxException: Illegal character in opaque part at index 2: D:\AndroidDev\GIT_DEV\repo\repo

eqgis commented 1 month ago

去掉依赖打包相关选项,eq-renderer模块无需配置mavan打包设置。完整build.gradle文件内容如下:

plugins {
    id 'com.android.library'
    id 'org.jetbrains.kotlin.android'
}

android {
    namespace 'com.eqgis.eqr'
    compileSdk 28

    defaultConfig {
        minSdk 24
        targetSdk 28
        versionCode 9
        versionName "1.0.8"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        ndk{
            abiFilters 'armeabi-v7a','arm64-v8a'
        }

        externalNativeBuild {
            cmake {
                cppFlags '-std=c++11'
            }
        }
    }

    buildTypes {
        release {
            //混淆 proguard-rules.pro
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    sourceSets {
        main {
            jniLibs.srcDirs = ['libs']
        }
    }
    externalNativeBuild {
        cmake {
//            path file('src/main/cpp/CMakeLists.txt')
            path file('CMakeLists.txt')
            version '3.22.1'
        }
    }
    kotlinOptions {
        jvmTarget = '1.8'
    }
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.2.1'
    implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
    implementation 'androidx.core:core-ktx:1.10.1'

    //AR相关采用在线依赖
//    compileOnly 'com.google.ar:core:1.39.0'
    compileOnly 'com.google.ar:core:1.45.0'

    compileOnly 'com.huawei.hms:arenginesdk:4.0.0.5'

    //离线依赖,注:需要相应so库,现为方便调试,引入filament-源码
//    implementation files("libs/filament-v1.12.0-android.jar")
//    implementation files("libs/gltfio-v1.12.0-android.jar")
//    implementation files("libs/filament-utils-v1.12.0.jar")

    //slam库 不再引入,已将EqSlamLayout移至app模块
//    compileOnly files("libs/eq-slam.jar")//若要使用”eq-slam“的功能,需单独引用”eq-slam-1.x.x.aar“,这里仅在编译时使用
    //opencv 的java部分代码库,注意:这里要剔除opencv.so和libc++_shared.so,用户使用时单独引用opencv,不合并在这个模块中
//    compileOnly files('libs\\opencv-4.5.5-java.jar')
}