0
我用項目結構GSON庫添加到的build.gradle(模塊:應用程序)文件不會自動導入文件,但我的Android 1.5.1的工作室不自動導入在MainActivity.java庫文件。我不知道爲什麼......添加在搖籃依賴關係MainActivity
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
compile 'com.google.code.gson:gson:2.2.4'
}
這不提供答案這個問題。一旦你有足夠的[聲譽](https://stackoverflow.com/help/whats-reputation),你將可以[對任何帖子發表評論](https://stackoverflow.com/help/privileges/comment);相反,[提供不需要提問者澄清的答案](https://meta.stackexchange.com/questions/214173/why-do-i-need-50-reputation-to-comment-what-can- I-DO-代替)。 - [評分](/審查/低質職位/ 16870151) – Parfait