neb.android
neb.android copied to clipboard
用最新版的android studio以及用自带的gradle,添加nebulasio android sdk依赖后报以下错误
Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
注意配置信息: compile 改成implementation androidTestCompile改成androidTestImplementation testCompile 改成testImplementation
build.gradle文件配置 dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.google.code.gson:gson:2.8.4' implementation 'com.squareup.okhttp3:okhttp:3.10.0' }
dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:27.1.1' implementation 'com.android.support.constraint:constraint-layout:1.1.0' implementation 'com.google.code.gson:gson:2.8.4' implementation project(':libnebulas') }
--------------------------- 另外,api 引用,注意查看一下AS的具体输出log详情,判定修改方案。