错误
Dr_abandon新秀
学海无涯,既然选择,就勇往直前。
展开
-
android 关于CLEARTEXT communication to xxx.xxx not permitted by network security policy错误
android 网络请求报错CLEARTEXT communication to qa not permitted by network security policy原创 2022-01-04 14:08:47 · 2088 阅读 · 0 评论 -
android permission denied for window type 2002
android 悬浮窗权限if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { mLayoutParams.type = WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; } else { mLayoutParams.type = WindowManager.LayoutParams.TYPE_PHONE;原创 2020-12-01 09:36:39 · 548 阅读 · 0 评论 -
Execution failed for task ‘:javaPreCompileDebug‘. > Could not resolve all files for configuration ‘
Execution failed for task ':javaPreCompileDebug'.> Could not resolve all files for configuration ':debugCompileClasspath'.在build.gradle 的repositories中 加上google这个配置就好了。 repositories { google() jcenter() maven{ url 'https://ma原创 2020-10-29 16:24:53 · 3890 阅读 · 2 评论 -
android Check the JVM arguments defined for the gradle process in:
android studio 编译报错:Unable to start the daemon process.This problem might be caused by incorrect configuration of the daemon.For example, an unrecognized jvm option is used.Please refer to the User Manual chapter on the daemon at https://docs.gradle.原创 2020-10-26 10:27:34 · 13963 阅读 · 2 评论 -
android FileNotFoundException错误:创建文件失败 No such file or directory
在Android真机上测试时 String savePAth = Environment.getExternalStorageDirectory() + "/DownFile/";创建时一直失败。 需要把路径改为:String savePAth = getExternalCacheDir()+"/DownFile/";...原创 2018-05-30 15:14:33 · 7013 阅读 · 1 评论 -
Android 导入环信,初始化失败 java.lang.UnsatisfiedLinkError: Couldn't load hyphenate from loader dalvik.system
错误06-13 15:06:51.813 8467-8467/com.wlkj.ciyun.sj E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wlkj.ciyun.sj, PID: 8467 ...原创 2018-06-13 15:59:59 · 505 阅读 · 0 评论 -
Android studio The versions of the Android Gradle plugin and Gradle are not compatible.
错误:The versions of the Android Gradle plugin and Gradle are not compatible.原因是:Android的Gealle插件和Gradle的版本是不兼容的。需要修改工程里的bulid.grade的 classpath;修改gradle-wrapper.properties看他们版本是不是一致的...原创 2018-06-08 10:36:50 · 1587 阅读 · 0 评论 -
retrofit请求报错:Expected a string but was BEGIN_OBJECT at line 1 column 2 path $
Expected a string but was BEGIN_OBJECT at line 1 column 2 path $这样的错,意思就是我想帮你解析成String而你返回的数据是一个对象,解析不了需要把返回的对象String 给成JsonObject就可以了如:Call<JsonObject> call =..........原创 2018-11-01 14:10:09 · 18662 阅读 · 3 评论 -
Android 添加butterKnife报错
E:\AndroidWorkSpace\My2019Test\testbutterknife\src\main\AndroidManifest.xml:22:18-91 Error: Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.and...原创 2019-05-09 10:38:56 · 500 阅读 · 0 评论 -
Android 有时环信初始化失败,创建applocation失败
java.lang.RuntimeException: Unable to create application com.wlkj.ciyun.sj.config.MyApp: java.lang.NullPointerException at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4原创 2018-05-04 09:48:34 · 1075 阅读 · 2 评论 -
Android 关于环信java.lang.UnsatisfiedLinkError: Couldn't load hyphenate from loader dalvik.system
关于环信问题: java.lang.UnsatisfiedLinkError: Couldn’t load hyphenate from loader dalvik.system.PathClassLoader[DexPathList[[zip file “/data/app/com.wlkj.ciyun.sj-1.apk”],nativeLibraryDirectories=[/data/app-原创 2018-04-26 10:49:01 · 479 阅读 · 0 评论 -
Error:Execution failed for task ':arc-1-8:processDebugManifest'. > Manifest merger failed : Attribut
在Manifest.xml的application标签下添加tools:replace=”Android:icon, android:theme” 并且记住在manifest根标签上加入xmlns:tools=”http://schemas.android.com/tools”原创 2017-01-08 16:09:35 · 505 阅读 · 0 评论 -
android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an appli
08-01 06:58:20.188 9791-9791/com.wlkj.ciyun E/AndroidRuntime: FATAL EXCEPTION: main Process: com.wlkj.ciyun, PID: 9791原创 2017-08-01 15:07:56 · 402 阅读 · 0 评论 -
错误ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
Error:Execution failed for task ‘:app:transformClassesWithDexForDebug’. com.android.build.api.transform.TransformException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowE转载 2017-09-15 14:35:40 · 436 阅读 · 0 评论 -
Android开发中java.lang.RuntimeException: Unable to start activity ComponentInfo xxx: java.lang.NullPoin
错误提示: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.easeutest/com.example.easeutest.ContactActivity}: java.lang.NullPointerException原因一:xxx的错误,若为R.layout.main 那么应该是ma原创 2017-09-28 16:00:28 · 928 阅读 · 0 评论 -
Android 环信获取好友异常,被catch掉
try { //拿到好友列表 List list = EMClient.getInstance().contactManager().getAllContactsFromServer(); } catch (HyphenateException e)原创 2017-09-29 14:38:10 · 1073 阅读 · 0 评论 -
Android Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3)
Android 打包错误: Error:Failed to complete Gradle execution.Cause: The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available i原创 2018-03-09 17:00:15 · 2996 阅读 · 0 评论 -
listview滑动冲突处理
在android中,有时候会遇到子控件和父控件都要滑动的情况,尤其是当子控件为listview的时候。这种情况较常见,典型的launcher,每个屏幕上放上listview就会出现这种情况。当view的onTouchEvent返回true,即消耗点击事件,viewgroup的onInterceptTouchEvent返回false,即不拦截点击事件。但是listview的父类AbsListView原创 2018-03-13 11:18:49 · 348 阅读 · 0 评论 -
Android Generate 不能用,重写方法快捷键不能用
Android错误: cannot add an action twice: Generate Butterknife Injections (Plugin for generating ButterKnife injections from selected layout XMLs in activities/fragments/adapters)安装了butterknife插件后,genera原创 2018-05-03 16:15:57 · 2216 阅读 · 1 评论 -
android.content.res.Resources$NotFoundException: Resource ID #0x0,错误
这个错误,是在代码中,你给了一个布局,或一个控件的id为0了或是数字演示错误示例如下,返回的布局为0也是会报这个错误的public class FansFragment extends BaseFragment{ @Override protected void initView() { } @Override public i原创 2016-12-16 12:33:23 · 1372 阅读 · 0 评论