Skip to content

Commit c3c4d75

Browse files
committed
1、调整依赖库版本
1 parent a692a32 commit c3c4d75

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

build.gradle

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apply plugin: 'com.android.library'
22

33
android {
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
}

src/main/java/common/base/retrofitCase/JsonConvert.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)