File tree Expand file tree Collapse file tree
src/main/java/common/base/retrofitCase Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22
33android {
4- compileSdkVersion 24
4+ compileSdkVersion 24 // 目前25没有源码
55 buildToolsVersion " 24.0.3"
66
77 defaultConfig {
@@ -33,10 +33,5 @@ dependencies {
3333 compile ' com.squareup.picasso:picasso:2.5.2'
3434 compile ' com.nineoldandroids:library:2.4.0'
3535 compile ' com.android.support:recyclerview-v7:24.2.1'
36- // compile 'com.daimajia.slider:library:1.1.5@aar'//一个重写的ViewPager,以及页面切换效果
37- // compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:v1.7.4'//实现了通用的RecyclerView的Adapter以及动画效果
38- // compile(name:'BaseRecyclerAdapterHelper-release', ext: 'aar')
39- // compile files('libs/android-support-v4.jar')
40- // compile files('libs/android-support-v7-appcompat.jar')
4136 compile ' cn.pedant.sweetalert:library:1.3'
4237}
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ public JSONObject convert(ResponseBody value) throws IOException {
2525 if (mType == JSONObject .class ) {
2626 JSONObject result = null ;
2727 try {
28- result = new JSONObject (value .string ());
28+ String respStr = value .string ();
29+ result = new JSONObject (respStr );
2930 } catch (JSONException e ) {
3031 e .printStackTrace ();
3132 }
You can’t perform that action at this time.
0 commit comments