Expected BEGIN_ARRAY but was STRING at line 1 column 1 path $
[解決方法 再把其他不报错的项目gradle文件复制过来再重新运行就可以了
4.异常信息
ERROR: Unable to find method 'org.gradle.api.tasks.compile.CompileOptions.setBootClasspath(Ljava/lang/String;)V'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Invocation failed Unexpected Response from Server: Unauthorized
[解決方法] AndroidStudio -> Preferences -> Git -> SSH Executable and changed from Native to Built-in and it started working.
6.异常信息(阿里服务,其他开发人员正常,自己异常时)
#24402 java.lang.ClassNotFoundException
Didn't find class "com.ta.utdid2.device.UTDevice" on path: DexPathList[[zip file "/data/app/com.zczy.cargo_owner-wf370Z9INZn6WuQ3DTR0HQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.zczy.cargo_owner-wf370Z9INZn6WuQ3DTR0HQ==/lib/arm, /data/app/com.zczy.cargo_owner-wf370Z9INZn6WuQ3DTR0HQ==/base.apk!/lib/armeabi, /system/lib, /system/vendor/lib]]
com.alibaba.sdk.android.beacon.b.a(Unknown Source:38)
[解決方法] AndroidStudio -> Invalidate and Restart
7.异常信息
Fragment must be a public static class to be properly recreated from instance state
[解決方法] 把fragment定义独立类文件,不要用匿名内部类的方式
8.异常信息
java.lang.IllegalStateException
Can not perform this action after onSaveInstanceState
android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:2053)
Unable to start service Intent { cmp=com.xxx.xxxx/com.xxx.xxx.LocationService (has extras) }: Unable to launch app com.xxxx.xxxxx/10110 for service Intent { cmp=com.xxx.xxx/com.xxx.LocationService }: process is bad
com.xxx.xxx.LocationService.startLocationSever(LocationService.java:88)