为什么Android Drawable Importer会忽略AS 3.5及更高版本中的选择 [英] Why does Android Drawable Importer ignore selection in AS 3.5 onwards

查看:169
本文介绍了为什么Android Drawable Importer会忽略AS 3.5及更高版本中的选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

右键单击->新的批处理可绘制导入,然后从选择图像资产框中选择任何 .png 批处理可绘制导入器主框保持为空(即:选择被忽略!).

After right-click --> new Batch Drawable Import and selecting any .png from the Select Image Asset(s) box, the primary Batch Drawable Importer box remains empty (ie: the selection was ignored!).

事件日志的前2行:

java.lang.NoSuchMethodError: org.jetbrains.android.facet.AndroidFacet.getAllResourceDirectories()Ljava/util/List;
    at de.mprengemann.intellij.plugin.androidicons.util.AndroidFacetUtils.getResourcesRoot(AndroidFacetUtils.java:48)

因此, Android Drawable Importer 基本上在较新的AS/intellij版本.

So apparently Android Drawable Importer is fundamentally broken under the more recent AS / intellij versions.

我下载并重新安装了 android-drawable-importer-intellij-plugin-0.5-81.zip 无效.该插件的上一次构建于2016年.

I downloaded and re-installed android-drawable-importer-intellij-plugin-0.5-81.zip to no effect. This plugin was last built in 2016.

这让我陷入困境,因为新的 Android Studio资源管理器 导入可绘制对象功能不允许我选择外部256x256 .png,然后自动调整大小为mdpi, hdpi,xdhpi等.

This leaves me stuck, because the new Android Studio Resource Manager Import Drawables function does not allow me to pick an external 256x256 .png and then automatically resize for mdpi, hdpi, xdhpi etc.

我已经注意到了这个问题(请参阅评论).

I have noted the issue (see comment).

有任何规避或替代方法吗?

Any circumventions or alternatives?

推荐答案

在更高版本的Android Studio中,存在多个阻止此插件运行的问题.

There were multiple issues preventing operation of this plugin in later releases of Android Studio.

分叉,已在Android Studio 3.6 RC 1下进行了修复和测试.

Forked, fixed and tested under Android Studio 3.6 RC 1.

几内亚猪可以从此处下载插件安装zip.

Guinea pigs may download the plugin installation zip from here.

( AS->设置->插件->从磁盘安装)

提示:事先卸载旧版本.

这篇关于为什么Android Drawable Importer会忽略AS 3.5及更高版本中的选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆