1

我有一个需要 OpenCV 和 Nd4j 库的 android 应用程序。问题是,该应用程序太大(几乎 700MB),我不知道如何精简它。

构建.gradle:

implementation fileTree(dir: 'libs', include: ['*.jar'])
    // https://mvnrepository.com/artifact/org.nd4j/nd4j-api
implementation group: 'org.nd4j', name: 'nd4j-api', version: '1.0.0-beta7'
implementation group: 'org.nd4j', name: 'nd4j-native-platform', version: '1.0.0-beta7'
implementation group: 'org.datavec', name: 'datavec-data-image', version: '1.0.0-beta7'

implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'org.tensorflow:tensorflow-lite:+'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

这是 apk 本身:https ://i.stack.imgur.com/3OZ2y.png

我怎样才能减小尺寸?

4

0 回答 0