Код: Выделить всё
apply plugin: 'java'
sourceSets {
main {
java {
srcDir 'src/model'
}
}
}
dependencies {
runtime files('libs/mnist-tools.jar', 'libs/gson-2.2.4.jar')
runtime fileTree(dir: 'libs', include: '*.jar')
}
Но проблема в том, что когда я запускаю команду: gradle build в командной строке, я получаю следующую ошибку:
Код: Выделить всё
error: package com.google.gson does not exist
import com.google.gson.Gson;
Подробнее здесь: https://stackoverflow.com/questions/207 ... radle-file
Мобильная версия