웹서버를 구현하기위해서
https://github.com/NanoHttpd/nanohttpd
에서 라이브러리를 다운받아 안드로이드라이브러리로 만들어
프로젝트에 적용했는데 런타임시 제대로 동작을 하지않습니다
그래들 디펜던시를 추가해줘야될것같은데
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile project(':jdom-1.1.2')
compile project(':guava-12.0')
compile 'com.google.android.gms:play-services-appindexing:8.1.0'
compile project(':nanohttpd')
runtime(
[group: 'org.nanohttpd', name: 'nanohttpd', version: '2.2.0'],
)
}
이렇게해줬는데
Error:(41, 0) Gradle DSL method not found: 'runtime()'
Possible causes:<ul><li>The project 'moduda' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
<a href="fixGradleElements">Upgrade plugin to version 2.3.1 and sync project</a></li><li>The project 'moduda' may be using a version of Gradle that does not contain the method.
<a href="openGradleSettings">Gradle settings</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
이런에러가 납니다
영어가 부족해서 설명서를 참조해도 잘안됩니다
해결방법에대한 조언부탁합니다