草庐IT

date_found

全部标签

android - 使用 Eclipse 调试 Android 应用程序时出现 "Source not found"

代码如下,我在某行设置了一个断点(我已经在下面的代码中标记了它,事实上,无论我在哪里设置断点,Eclipse总是告诉我“找不到源代码”):packagecom.app.MainActivity;importjava.io.IOException;importorg.xmlpull.v1.XmlPullParser;importorg.xmlpull.v1.XmlPullParserException;importandroid.app.Activity;importandroid.content.res.XmlResourceParser;importandroid.os.Bundle

android - 错误 : No Retrofit annotation found.(参数 #2)

我有这个界面:publicinterfaceInterfazAguaHttp{@FormUrlEncoded@POST("/")CallsaveContador(@Field("contador")Longcontador,CallbackcallBack);}剩下的代码是这样的:Retrofitbuilder=newRetrofit.Builder().baseUrl(ValoresGlobales.urlServlet).addConverterFactory(GsonConverterFactory.create()).build();InterfazAguaHttpinterf

android -/bin/sh : adb: command not found

这个问题在这里已经有了答案:SetupadbonMacOSX(32个答案)关闭4年前。当我尝试在我的设备上运行我的Reactnative应用程序时,我收到以下消息/bin/sh:adb:commandnotfound。该应用程序仍在我的手机上运行,​​但我无法重新加载它或远程调试它。有很多这样的问题,但他们的解决方案对我没有帮助。我的adb文件在~/Library/Android/sdk/platform-tools中。我尝试执行sudonano~/.zshrc,然后在用户配置下我添加了exportPATH="~/Library/Android/sdk/platform-tools"但

android - 错误 : Error: No resource found that matches the given name: attr 'colorAccent'

我正在学习MaterialDesign,特别是我想使用MaterialDesign自定义我的应用程序,也适用于较旧的Android版本。我正在阅读本指南:https://developer.android.com/training/material/compatibility.html#SupportLib关于调色板,指南说:ToobtainmaterialdesignstylesandcustomizethecolorpalettewiththeAndroidv7SupportLibrary,applyoneoftheTheme.AppCompatthemes:@color/mate

android - Android Studio 3.1.2 中的 "ADB not found"错误与设备文件资源管理器

我将AndroidStudio升级到3.1.2,当我想使用DeviceFileExplorer时,我收到“ErrorinitializingADB:AndroidDebugBridgenotfound”错误,但是,我的adb在cmd和powershell中都可以正常工作,我该如何修复这个错误?从错误消息中,我发现名为AndroidSupport的插件中有一个异常,在我的电脑上它的版本是10.3.1.2。下面是错误消息:ADBnotfoundcom.intellij.openapi.diagnostic.Logger$EmptyThrowableatcom.intellij.openap

Android Studio "0 test classes found in package"当 "rerun failed tests"

我在AndroidStudio上遇到了一个非常令人沮丧的行为,更新到最新版本(3.1.3,构建编号#AI-173.4819257),gradle插件版本3.1.3。发生的事情是,在运行基于Robolectric的单元测试后,单击“重新运行失败的测试”,我总是收到此消息:0testclassesfoundinpackage'my-package-name'Processfinishedwithexitcode254Emptytestsuite.我尝试使缓存无效/重新启动,更新到每个依赖项的最新版本。其实我找不到任何关于这个问题的有用信息,所以我在这里询问是否有人经历过类似的行为在这里你可

安卓终端-IDE : terminal-gcc error: arm-eabi-gcc not found

我正在使用Terminal-IDE作为我的开发环境。(Googlecodesitehere.)我正在运行Terminal-IDEv2.02-最新版本。我的Android版本是:安卓4.0.3软件版本2.14.531.371ORD(其余的不太可能相关,但应要求提供更多信息)我在一个合适的开发目录中,有一个足够简单的C源代码文件准备好并运行“make”。我还没有得到任何编译成功。最有可能的是,可用的可执行文件与软件正在寻找的版本不匹配。这是命令和错误消息:terminal-gcc-c-Wall-I/data/data/com.spartacusrex.spartacuside/files/

java - Android Studio - 错误 :resource drawable/abc_ic_ab_back_mtrl_am_alpha (aka com. instacoin:drawable/abc_ic_ab_back_mtrl_am_alpha) not found

我收到这些错误:Error:resourcedrawable/abc_ic_ab_back_mtrl_am_alpha(akacom.instacoin:drawable/abc_ic_ab_back_mtrl_am_alpha)notfound.Error:failedlinkingfileresources.Error:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2error:che

android - strings.xml 中的 "Message description not found"警告

我从strings.xml收到大量烦人的警告。在每个声明的左侧,我都会收到一条警告消息“未找到消息描述”。我该如何解决? 最佳答案 我有同样的问题,因为我更新了SDK。我找到了解决这个问题的方法。只需在string.xml文件中的每个字符串前添加注释,即可解决警告。示例如下:TestApp 关于android-strings.xml中的"Messagedescriptionnotfound"警告,我们在StackOverflow上找到一个类似的问题: http

android - Apache Cordova : Failed to load resource: the server responded with a status of 404 (Not Found)

当我在Android模拟器或我的Android设备上运行我的应用程序时,我在所有AJAX请求中遇到以下错误:Failedtoloadresource:theserverrespondedwithastatusof404(NotFound)我已经尝试了以下所有步骤来解决这个问题,但它仍然存在。使用npm将白名单插件安装到项目中。已添加至配置.xml。已添加到platforms\android\AndroidManifest.xml。已添加和到的www/index.html文件。已添加,和到config.xml文件。无论如何,我仍然会遇到同样的错误。有什么想法吗?项目编译正常。我在Wind