如何编辑我的项目中集成的某些自定义android libray(.aar)中存在的资源文件?

时间:2017-11-10 07:04:57

标签: java android android-studio

我已经在我的android项目中添加了一个android库.aar。现在我要编辑一些js,android库资源文件夹中存在的文本文件而不是src文件。但我无法编辑它,因为我没有引用那个android库资源文件夹。任何人都可以解释如何编辑android库资源文件夹中的文件。

1 个答案:

答案 0 :(得分:0)

We can go to the external libraries added to the project and check for the library and then try to open the folder from that library.

Example:-

**Steps to edit the integrated library resources(res) & assets files.**

**Step1:-**
Goto the External Libraries Section of your project in android studio and check for the your integrated library as shown in the below image. 
[![enter image description here][1]][1]


**Step2:-** 
Check for the res folder in the integrated library and right click on the res folder you will get a menu.As shown in the below image. 
[![enter image description here][2]][2]


**Step3:-** 
From the displayed menu select the option “Show in Explorer”.Then the integrated library window will be opened as shown in the below image.This is the path for the assets and res folder of the integrated library. Integrated library path will be similar to Eg: C:\Users\UserName\.gradle\caches\transforms-1\files1.1\integratedlibrary .aar\**************
[![enter image description here][3]][3]


  [1]: https://i.stack.imgur.com/OdhEi.png

  [2]: https://i.stack.imgur.com/sJgTa.png

  [3]: https://i.stack.imgur.com/kMjYy.png