草庐IT

is_author

全部标签

android - 谷歌地图错误 : Marker's position is not updated after drag

我设置了一个标记并将其可拖动状态设置为true。但是当我调用marker.getPosition()时,我总是得到相同的位置,就像标记的位置在拖动结束后没有更新一样。mMap=((MapFragment)getFragmentManager().findFragmentById(R.id.map_place)).getMap();LatLngMYLOCATION=newLatLng(Double.valueOf(myLat),Double.valueOf(myLng));marker=newMarkerOptions().position(MYLOCATION).title(getSt

android - Gradle 显示支持库错误 : "Module version com.android.support:support-v13:19.0.1 depends on libraries but is not a library itself"

这就是我的build.gradle所说的:applyplugin:'android'applyplugin:'crashlytics'applyfrom:'../gradle/checkstyle.gradle'applyfrom:'../gradle/pmd.gradle'compileSdkVersion19buildToolsVersion"19.0.3"defaultConfig{minSdkVersion17targetSdkVersion19}但是我看到这个编译错误:Gradle'mobi-client-connect-android-mobile'projectrefre

android - 运行 Android 应用程序时出现错误 "The connection to adb is down"

我是android开发的新手,我在安装所有最新平台时遇到问题。我是一名java开发人员,我想学习android。我已经在windowsxpsp3中成功安装了所有程序(创建了环境变量的JDK1.6,配置良好的eclipse3.5、3.6和3.7,具有所有功能、设备、平台工具、API等的AndroidSDK,以及ADT用于eclipse的插件12,带有API8的模拟器-Target2.2-),但是,当我将android项目运行到eclipse中时(运行->Android应用程序),eclipse控制台向我显示:“与adb的连接宕机了,出现了严重错误。。。必须重启adb和eclipse。。。

引入websocket的启动报错: Bean named ‘defaultSockJsTaskScheduler‘ is expected to be of type ‘org.springframe

chartgpt解释:这个异常通常是由于Spring容器中的Bean名称与期望的类型不匹配所引起。在这个具体的异常中,Bean名称为'defaultSockJsTaskScheduler',期望的类型是TaskScheduler,但实际上却是NullBean。这可能是因为在Spring配置文件中存在了Bean配置错误或Bean名称重复等问题。解决这个异常的方法可以尝试以下几步:检查Spring配置文件中是否有重复的Bean定义或Bean名称,确保每个Bean都有唯一的名称。确认Spring容器中是否正确地加载了所有需要的Bean,并且它们的名称和类型都与配置文件中的定义一致。检查是否有其他框架

android - 使用 FirebaseMessagingService 类时出现错误 "return type int is not compatible with Intent"

我的应用程序需要FCM服务,我不能使用FirebaseMessagingService类,它说:Error:(24,8)error:zzaa(Intent)inFirebaseMessagingServicecannotoverridezzaa(Intent)inzzbreturntypeintisnotcompatiblewithIntent这是我的代码publicclassMyFirebaseMessagingServiceextendsFirebaseMessagingService{@OverridepublicvoidonMessageReceived(RemoteMessa

IDEA运行测试方法报错Command line is too long

在运行Java测试(特别是在IntelliJIDEA中)时遇到**“Commandlineistoolong”**这个错误,是因为测试框架(如JUnit)试图在命令行中传递一个非常长的类路径。以下是针对这种情境的一些建议的解决方法:1.使用动态类路径:对于IntelliJIDEA:打开“Run/DebugConfigurations”对话框。在“Configuration”选项卡中,勾选“Shortencommandline”选项,并从下拉菜单中选择“JARmanifest”。2.使用maven-surefire-plugin:如果您使用Maven作为构建工具,考虑在您的pom.xml文件中为

android - 为什么我收到错误 "MyActivity is not an enclosing class?"

我有一个以下列类开头的libgdx程序:publicclassMyActivityextendsAndroidApplicationimplementsIActivityRequestHandler我需要一个Activity类来使用Display检测屏幕尺寸(我不能在AndroidApplication类中这样做)。所以我添加了以下类作为我的启动器Activity:publicclassMyActivity1extendsActivity所以在我的新类(class)MyActivity1中,我尝试运行我的旧类(class)MyActivity:IntentmyIntent=newInt

【IDEA】解决:win10下 IDEA 中 git 拉取项目提示 Unsupported Git Version 2.17.1 At least 2.19.2 is required

一、场景二、原因三、解决方案方法一:(需要能访问github网站)方法二:(下载对应版本)一、场景        IDEAgitee拉取项目提示 UnsupportedGitVersion2.17.1Atleast2.19.2isrequired二、原因        git版本过低,需要安装三、解决方案方法一:(需要能访问github网站)#查看git版本git-v#2.17.1更新命令:gitupdate-git-for-windows方法二:(下载对应版本)官网:https://git-scm.com/download/win淘宝镜像:https://registry.npmmirror

android - 如何修复 The method startActivity(Intent) is undefined for the type new View.OnClickListener() 语法错误

我的代码有语法错误,在“getView”中我想为按钮“更新”创建一个监听器以移动到另一个Activity:@OverridepublicViewgetView(intposition,ViewconvertView,ViewGroupparent){LayoutInflaterl=(LayoutInflater)context.getSystemService(context.LAYOUT_INFLATER_SERVICE);ViewrowView=l.inflate(R.layout.temp,parent,false);TextViewtextView=(TextView)rowV

java - 为什么我收到警告 :Class is a raw type. References to generic type Class<T> should be parameterized”?

我在ListActivity中收到警告.我收到的警告如下所示Classisarawtype.ReferencestogenerictypeClassshouldbeparameterized它不会产生任何问题,但我想知道为什么我会收到此警告以及如何抑制它。请参阅星号内写的行。publicclassMenuextendsListActivity{Stringclasses[]={"Second","example1","example2","example3","example4"};@OverrideprotectedvoidonCreate(BundlesavedInstanceSt