简体   繁体   English

ADT不会将Android私有库与libs文件夹同步

[英]ADT doesnt sync Android Private Libraries with libs folder

在此处输入图片说明

Things i tried: 我尝试过的事情:

  1. Clean Up 清理
  2. Refresh 刷新
  3. Rename libs then rename it back to libs 重命名库,然后将其重命名为库
  4. right click on Project -> Android Tools -> Fix project properties 右键单击项目-> Android工具->修复项目属性

  5. 在此处输入图片说明

  6. closed project and reopened it none helped, what should i do to correct this? 已关闭项目并重新打开它没有帮助,我应该怎么做才能纠正此问题?

  7. i noticed that if i remove the android lib projects from the android import screen ADT syncs the libs folder and when i readd them it removes the libs, is it a bug on ADT? 我注意到,如果我从android导入屏幕中删除android lib项目,则ADT会同步libs文件夹,当我读取它们时,它会删除libs,这是ADT上的错误吗?

在此处输入图片说明

在此处输入图片说明

右键单击您的项目,单击属性,转到“ java build path ”,选择“ order and export”选项卡,确保选中了android私有库。

When you removed the old files some references and dependencies might not have removed 删除旧文件时​​,某些引用和依赖项可能尚未删除


  • Step1 : Delete all the libraries from libs folder 步骤1 :从libs文件夹中删除所有库

  • Step2 : Go to Project -> Rightclick -> Properties -> Java Build Path -> Libraires 第二步 :进入Project - > Rightclick - > Properties - > Java Build Path - > Libraires
    Delete android private libraries Explicitly 明确删除android私有库


There are two places that the reference to the previous project needed to be deleted from, not just one. It had to be taken out of both the "Projects" tab on "Build Path" and out of "Project References" in the project properties


  • Step3 : Finally paste the new libraries again into libs folder 第三步 :最后将新库再次粘贴到libs文件夹中

  • Step4 : Clean the project and run 第四步 :清理项目并运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android Private Libraries,Dependencies和libs文件夹之间有什么区别? - What is the difference between Android Private Libraries, Dependencies and the libs folder? 从“Android私有库”中删除不在我项目的libs文件夹中的项目 - Remove item from “Android Private Libraries” that is not in my project's libs folder libs文件夹和Android私有库中的commons-io-2.4.jar - 这是一个错误吗? - commons-io-2.4.jar both in the libs folder and in the Android Private Libraries - is it a mistake? eclipse adt 17 和 libs 文件夹 - eclipse adt 17 and the libs folder Android中的库不会添加到Android Private Libraries文件夹中 - Libraries are not adding into Android Private Libraries folder in Android ADT:运行带有libs文件夹中的库的项目时,达到了GC开销限制 - ADT: GC overhead limit reached when running project with libraries in libs folder 如何在ADT eclipse中添加“Android私有库”的来源? - How to add source of 'Android Private Libraries' to ADT eclipse? Android eclipse-在libs文件夹和参考库中重复的android.jar - Android eclipse - android.jar duplicated in libs folder and Referenced Libraries Eclipse中的“Android Private Libraries”文件夹是什么? - What is the “Android Private Libraries” folder in Eclipse? 外部库vs libs文件夹 - External libraries vs libs folder
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM