草庐IT

com_codename

全部标签

android - Activity 泄漏了最初添加到此处的窗口 com.android.internal.policy.impl.PhoneWindow$DecorView@46368a28

这个问题让我抓狂。我错过了一些基本但非常重要的知识,这些知识涉及如何在Activity中创建的新线程中处理长时间操作,以及如何在长时间操作完成后修改View组件(如文本等)。首先让我向您展示我的代码中发生此问题的部分:mProgressDialog=ProgressDialog.show(mContext,"Tripplanner","pleasewait...",true,false);connectAndGetRoute();privatevoidconnectAndGetRoute(){newThread(){@Overridepublicvoidrun(){try{if(!co

Git 拉取代码提示 unable to access ‘http://xxx.xxx.com/xxx/xxx.git/: Could not resolve host 异常解决

项目场景:在开发过程中,会遇到git拉取提交操作。最近拉取主分支代码的时候,提示拉取失败问题描述提示如下:Updatefailedunabletoaccess'http://xxx.xxx.com/xxx/xxx.git/:Couldnotresolvehostxxx.xxx.com原因分析:出现这个问题,一般是域名对应IP发生变化,git拉取时访问不到造成的。解决方案:两种解决方法:第一种:本地host文件域名对应的IP替换成新的。host文件地址:C:\Windows\System32\drivers\etc第二种:在idea中找到git地址,把域名替换成新IP来解决。Git---> Ma

com.alibaba.druid.pool.DruidDataSource: create connection error, errorCode 0, state 08S01

具体报错如下com.alibaba.druid.pool.DruidDataSource:createconnectionerror,url:jdbc:mysql://localhost:3306/yztech_extend?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&useSSL=false,errorCode0,state08S01com.mysql.cj.jdbc.exceptions.CommunicationsException:CommunicationslinkfailureThelas

android - 在 Dex 阶段构建大型 Codename One 应用程序时出错

在dex阶段发送Android构建时,构建服务器出现错误。谷歌了一下我了解到函数有64K的硬限制(包括所有库,最重的是googleplayservices),或者你可以使用multipledex机制。如何为代号一激活此功能?我明白了CodenameOne使用Ant,据我所知这只适用于gradle。仅供引用,这是解决方法,它将googleplay服务拆分为具有原生android的子库:http://android-developers.blogspot.com.es/2014/12/google-play-services-and-dex-method.html

android - 错误 :(30, 13) 无法解析 : com. android.support.constraint :constraint-layout:1. 0.0-alpha4

错误:(30,13)解析失败:com.android.support.constraint:constraint-layout:1.0.0-alpha4 最佳答案 我找到了解决方法:下载AndroidStudio2.2Preview7将SDK工具更新到最新的25.2.1按照下图在SDK管理器中下载ConstraintLayout和SolverforConstraintLayout将com.android.support.constraint:constraint-layout:1.0.0-alpha5添加到gradle.build

android - 错误重复条目 : com/google/android/gms/location/places/zzj. 类

当我尝试运行我的项目时出现此错误:Error:Executionfailedfortask':app:transformClassesWithJarMergingForDebug'.com.android.build.api.transform.TransformException:java.util.zip.ZipException:duplicateentry:com/google/android/gms/location/places/zzj.class这是我正在使用的build.gradle文件:buildscript{repositories{jcenter()}depend

android - 升级到 Android Studio 3.1 后无法加载类 'com.android.builder.Version'

我已经在Canarychannel中升级到AndroidStudio3.1,但我无法再构建我的项目,打印了这个错误:Unabletoloadclass'com.android.builder.Version'.Possiblecausesforthisunexpectederrorinclude:Gradle'sdependencycachemaybecorrupt(thissometimesoccursafteranetworkconnectiontimeout.)Re-downloaddependenciesandsyncproject(requiresnetwork)Thesta

android - 无法解析 : com. android.support :customtabs:[26. 0.0,26.1.0]

这个问题在这里已经有了答案:Androidstudiodefaultprojectfails:Error:Failedtoresolve:com.android.support:support-v4:25.2.0(3个答案)Failedtoresolve:com.android.support:cardview-v7:26.0.0android(26个答案)关闭5年前。我有这两个错误:解析失败:com.android.support:customtabs:[26.0.0,26.1.0]解析失败:com.android.support:support-v4:[26.0.0,26.1.0]

android - AdMob 无填充 - 无法实例化中介适配器 : com. google.DummyAdapter

我的应用仅使用AdMob。它是AdMob中介设置中显示的唯一“中介来源”。AdMob横幅可以正常加载,但不能加载插页式广告:I/Ads:Startingadrequest.I/Ads:Tryingmediationnetwork:I/Ads:Instantiatingmediationadapter:com.google.DummyAdapterW/Ads:Couldnotinstantiatemediationadapter:com.google.DummyAdapter.com.google.DummyAdapterI/Ads:Nofillfromanymediationadnet

android - com.google.android.gms.common.api.ApiException : 17: API: Drive. API_CONNECTIONLESS 在此设备上不可用

这是故事。大约三年前,我将GoogleDriveAndroidSDK(8.1.0)集成到我的应用程序(AnyCopy)中。我按照教程正确设置,包括添加凭据和apikey。一切正常。我可以毫无问题地备份和恢复我的数据。即使在今天,如果我从GooglePlay下载它也能正常工作。最近我一直在尝试重构AnyCopy并将最新的GoogleDriveAndroidSDK(GooglePlay服务版本号12.0.1)集成到我的应用程序中并遇到一个奇怪的消息错误java.util.concurrent.ExecutionException:com.google.android.gms.common.