是否可以在AndroidStudio中使用nidi.guru Graphviz实现?

时间:2018-07-04 18:19:33

标签: android graphviz

是否可以在Android Studio中使用大师nidi Graphviz实现。它们的实现可从maven获得。我试图在AndroidStudio中使用它,但出现的错误是:

程序类型已经存在:com.eclipsesource.v8.NodeJS $ 2

其实现的源代码为:https://github.com/nidi3/graphviz-java

我的胜利是:

应用插件:“ com.android.application”

android {

compileSdkVersion 27
buildToolsVersion '27.0.3'
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}
dexOptions {
    //incremental = true;
    //preDexLibraries = false
    javaMaxHeapSize "4g" // 2g should be also OK
}
defaultConfig {
    multiDexEnabled true
    applicationId "rs.etf.igor.algorithmsimulation"
    minSdkVersion 24
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    javaCompileOptions {
        annotationProcessorOptions {
            includeCompileClasspath false
        }
    }
    packagingOptions {
        exclude 'license/LICENSE.dom-documentation.txt'
        exclude 'license/NOTICE'
        exclude 'license/README.dom.txt'
        exclude 'license/LICENSE.dom-software.txt'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'license/LICENSE'
    }

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

}

依赖性{

implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.eclipsesource.j2v8:j2v8:4.8.0@aar'
implementation 'guru.nidi:graphviz-java:0.2.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation files('libs/log4j-1.2.17.jar')

}

敬上, 伊戈尔·沃德利亚(Igor Vurdelja)

0 个答案:

没有答案