草庐IT

act_name

全部标签

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

android - 在 Android Studio 中构建项目时出错 "Error: No resource found that matches the given name (at ____ with value ' @drawable/<name>')

我在Google、stackoverflow和其他android编程网站上进行了搜索,许多网站都为那些将文件从一个文件夹错放到另一个文件夹的人提供了建议等等。但没有一个能说明我面临的问题。这不是像here中那样的损坏文件因为我尝试过但没有成功。我面临的错误是类似的:[debug]C:\Users\Name\AppData\Local\Temp\android_manifest_copy6264790980678653632tmp\AndroidManifest.xml:11:error:Error:Noresourcefoundthatmatchesthegivenname(at'ic

android - 错误获取 'name' 属性 : attribute is not a string value

将我的apk文件上传到googleplay会出现此错误:YourAPKcannotbeanalyzedusingaapt.Erroroutput:Failedtorunaaptdumpbadging:ERRORgetting'name'attribute:attributeisnotastringvalue因为我知道这个问题在我的list文件中,所以我把它放在这里:AndroidManifext.xml:我已经检查了所有的android:name属性,没有找到问题所在。谢谢大家。 最佳答案 所以在稍微搜索之后,我找到了三个选项供您执