草庐IT

Application-Name

全部标签

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 - AndroidManifest.xml 中的属性 application@allowBackup value=(false) 也出现在 [ :barcodescanner:] AndroidManifest. xml value=(true)

我正在尝试将我的ionic3应用程序list中的allowBackup属性设置为false,但gradle提示出现以下错误:来自AndroidManifest.xml:4:18-45的属性application@allowBackupvalue=(false)也出现在[:barcodescanner:]AndroidManifest.xml:12:9-35value=(true)中。建议:在AndroidManifest.xml:4:5-11:19处的元素中添加'tools:replace="android:allowBackup"'以覆盖。在config.xml文件中使用以下行设置a

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 - D/ TextView : setTypeface with style : 0 comes and stuck the application

当我运行我的应用程序时,它卡住了,所以我检查了Loccat,它似乎带有样式的setTypeface:0错误循环。 最佳答案 这来自对的调用view.setTypeface(Typeface.DEFAULT,0)或view.setTypeface(Typeface.DEFAULT,Typeface.NORMAL)我相信你可以安全地将调用更改为(省略第二个参数)view.setTypeface(Typeface.DEFAULT)(View是一个TextView)Galaxy7DUOS(SM-G920FD),Android7.0

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

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

android - 来自 "adb shell dumpsys meminfo my-app-name"的配置文件的详细说明?

谁能详细解释一下adbshelldumpsysmeminfomy-app-name获取的配置文件?结果如下HowdoIdiscovermemoryusageofmyapplicationinAndroid?中提到的:**MEMINFOinpid890[process-name]**nativedalvikothertotalsize:109407047N/A17987allocated:89435516N/A14459free:3361531N/A1867(Pss):458592821191625783(shareddirty):218435969166696(privdirty):4