草庐IT

qualified-name

全部标签

android - 错误 : jest-haste-map: Haste module naming collision:

我已经创建了一个自定义的npm模块(将使用xxx而不是它的名称)并使用npminstall手动链接它。我非常努力地搜索:[Workarounds]Packagerunabletoresolvemodulefrom/Users/node_modules/Error:jest-haste-map:@providesModulenamingcollisionwhenusingalocaldependency在提出问题之前。如果有人告诉我我的代码或我的方法有什么问题或我的代码中有任何错误,我将不胜感激。当我运行react-nativerun-android时,metrobundler引发了以下

Android Studio - Robolectric : android. content.res.Resources$NotFoundException : no such label com. my.app:string/app_name

这个问题我似乎无法摆脱,我已经阅读了大约3到4打文章和线程试图解决它。我已经概述了下面的所有内容。基本上问题是,问题是我在Robolectric上有缺陷吗?或者我遗漏了一些小步骤,或者我有一个奇怪的插件组合。对此的任何指导将不胜感激。Windows7的版本:Gradle2.7AndroidStudio1.3.2Robolectric3.0Roboguice3.+项目依赖:dependencies{classpath'com.android.tools.build:gradle:1.3.0'classpath"com.newrelic.agent.android:agent-gradle

android - 谷歌播放说 : "You need to use a different package name" - why?

我已经在GooglePlay上发布了一个名为com.mycompany.mygame的应用。然后我决定发布它的无广告版本。我没有在eclipse中更改包名称,因为我注意到在“导出”过程中您有机会将最终的apk设置为您喜欢的任何内容。所以我将其设置为com.mycompany.mygameaf-请注意末尾附加的“af”。但是当试图将其上传到市场时,谷歌说:您需要使用不同的包名称,因为“com.mycompany.mygame”已被您的其他应用程序之一使用所以现在我很困惑。投诉是因为我不允许拥有一个apk,这个apk是以前应用程序的名称和扩展名吗?或者最终的apk是否知道原始名称是什么?解

android - 错误 : Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'

我正在关注文档here将AndroidSupportV7Libary安装到我的项目中。我注意到两件事:1)当我浏览我的SDK安装目录和SupportLibrary文件夹时,没有名为“appcompat”的文件夹2)当我安装整个V7文件夹时,我得到这个错误:error:Errorretrievingparentforitem:Noresourcefoundthatmatchesthegivenname'Widget.AppCompat.ActionButton'我该如何解决这个问题?(注意:这是在mediarouter文件夹中)这是我在浏览我的SDK安装目录时看到的:http://tin

android - Google Drive API - 名称不能为空 : null (But I had passed valid account name to GoogleAccountCredential)

最近,我有访问GoogleDrive的Android代码。我使用的是GoogleAPIsClientLibraryforJava而不是GooglePlayservicesclientlibraryprivatestaticGoogleCloudFilesearchFromGoogleDrive(Drivedrive,StringqString,HandleUserRecoverableAuthIOExceptionableh,PublishProgressablep){try{Files.Listrequest=drive.files().list().setQ(qString);do

Android:在 res 中使用 SVG 会导致错误: "The file name must end with .xml or .png"

我刚刚更新了AndroidStudio1.2.1.1,现在gradle在我的资源文件夹中遇到了svg问题。我一直在毫无问题地使用SVG,我希望它们将来会被“允许”。:app:mergeDebugResources:app:mergeDebugResourcesFAILED/home/petergriffin/folder1/another-app/MyAwesome-App/app/src/main/res/drawable-hdpi/logo.svgError:Error:Thefilenamemustendwith.xmlor.pngError:Executionfailedfor

android - 文件 :///android_res/drawable not working when using flavor with other package name

我的问题是,在我将flavor添加到我的项目之后,包名称与实际源不同的flavor似乎无法访问android_res/drawable中的文件。更具体地说,我有一个调用以下图像的htmlView。图像显示在产品版本中,其包名称与java文件的目录相同,但它不适用于beta版本:productFlavors{production{packageName"com.company.myapp"}beta{packageName"com.company.beta"}}java文件所在的目录java/com/company/myapp发生这种情况很奇怪,因为资源甚至不在该文件夹中。

android - 未找到输出 : error: resource style/TextAppearance. Compat.Notification.Info(又名 package_name :style/TextAppearance. Compat.Notification.Info)

切换到AndroidStudio3.2canary后,我收到以下构建错误。我看过this发布这个人有类似问题但没有提到解决方案的地方。我想尝试新的Material组件和喷气背包,所以有没有可能我不必切换回去。com.android.builder.internal.aapt.v2.Aapt2Exception:AndroidresourcelinkingfailedOutput:error:resourcestyle/TextAppearance.Compat.Notification.Info(akacom.nsnik.nrs.kotlintest.debug:style/TextA

android - Android XML 文件中 android :id, android:name 和 name 标签的区别

有人可以阐明Android的XML文件中android:id、android:name和name标签之间的区别吗?它们似乎都是引用事物的方式。例如,当我在res/values/array.xml文件中有一个字符串数组时,我使用定义数组中的name字段访问,但Javadoc引用以此作为“ID”。android:id似乎只是在View中使用?我是不是遗漏了什么,还是只有一个标签会不会更简单? 最佳答案 不,我不相信你遗漏了什么。尽管这些字段的名称不同,但我的理解是它们都用于标识/引用资源。在android:id的情况下,这特别意味着GU

android - Cordova Android 无法加载资源:net::ERR_NAME_NOT_RESOLVED

我今天升级到最新的Cordova-5.4.1。iOS上的应用程序一直运行良好,但在Android上却不行。所有请求都返回404错误,所以我深入研究了这个主题,发现我需要“cordova-plugin-whitelist”。我安装并添加了到index.html的标题以及到config.xml现在每个对外部世界的请求都返回“net::ERR_NAME_NOT_RESOLVED”在AndroidManifest.xml中我有这两行,所以我想这不是互联网访问的问题。我经历了很多与cordova-plugin-whitelist相关的SO问题,但似乎没有任何效果我的config.xml```ap