首页 > 其他分享 >android: workaround for slow ‘building workspace’ problem in eclipse

android: workaround for slow ‘building workspace’ problem in eclipse

时间:2023-06-02 18:38:01浏览次数:61  
标签:building slow workaround eclipse ant build key android problem


While developing for android on eclipse 3.6 i had the problem that each time i saved a file, eclipse blocked me several seconds with ‘building workspace…’. Similar to these:

stackoverflow – android-compilation-is-slow-using-eclipsestackoverflow – android-eclipse-workspace-takes-a-long-time-to-buildgroups.google – android-developers/thread/a16202975510de39


The best workaround i found for me:

  • disable Android Package Builder (right-click on project#Properties#Builders)
  • use ant build to deploy on emulator

This way i can work (as) fast (as usual) with eclipse, everything compiles and gets generated, but once i want the app on the emulator, i execute ‘ant install‘ from console.

Setting up the ant build is quite easy, see using-ant-to-automate-building-android for details.
In short you have to simply execute ‘android update project --path .‘ which generates your build.xml.


Note: If you have 3rd party jars put them in ‘libs’ folder, that way ant is aware of them.

Note: You also can build a signed apk with ‘ant release‘. Add therefor a build.properties with such a keystore setup:

key.store=/Users/jz/.android/debug.keystore
key.alias=androiddebugkey
key.store.password=android
key.alias.password=android


PS: i also stumbled into the ‘external folder’ synchronization problem. Closing all android projects and reopening again helped!

标签:building,slow,workaround,eclipse,ant,build,key,android,problem
From: https://blog.51cto.com/u_16125990/6404524

相关文章

  • 关于《Building a GraphQL service》的尝试
      以下是实现代码packagecom.example.graphqlserver;importjava.util.Arrays;importjava.util.List;publicrecordAuthor(Stringid,StringfirstName,StringlastName){privatestaticList<Author>authors=Arrays.asList(newAuthor(......
  • Building MiniGUI 4.0
    PrerequisitesStepsCommandstobuilddependenciesCrossBuildingChangeLogCopyingSpecialStatementOtherNotesThisrepocontainssomescriptsanddependenciestobuildMiniGUI4.0.xThisinstructionassumesthatyouareusingUbuntuLinux16.04L......
  • Google Earth Engine(GEE)——全球建筑物数据集(MSBuildings数据集)包含微软7.77忆建筑物
    全球ML建筑脚印必应地图正在发布全球范围内的公开建筑脚印。我们从2014年至2021年的Bing地图图像中检测到777M的建筑,包括Maxar和Airbus的图像。为了完整起见,早期发布的数据集也包括在这个数据集中,并被纳入其中。你可以在这里找到Githubrepo和关于方法的更多信息。数据集是压缩的,......
  • Maven PKIX path building failed 错误提示
    最近公司的项目突然出现了下面的提示。PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget->[Help2]  问题和解决出现上面的提示的问题是因为SSL签名的问题。但是我们......
  • Maven PKIX path building failed 错误提示
    最近公司的项目突然出现了下面的提示。PKIXpathbuildingfailed:sun.security.provider.certpath.SunCertPathBuilderException:unabletofindvalidcertificationpathtorequestedtarget->[Help2]  问题和解决出现上面的提示的问题是因为SSL签名的问题。......
  • 第四周编程作业(一)-Building your Deep Neural Network: Step by Step
    BuildingyourDeepNeuralNetwork:StepbyStepWelcometoyourweek4assignment(part1of2)!Youhavepreviouslytraineda2-layerNeuralNetwork(withasinglehiddenlayer).Thisweek,youwillbuildadeepneuralnetwork,withasmanylayersasyou......
  • Building wheel for opencv-python (pyproject.toml) ,安装命令增加 --verbose 参数
    Mac安装paddlehub出现Buildingwheelsforcollectedpackages:opencv-python,ffmpy,jieba,seqeval,futureBuildingwheelforopencv-python(pyproject.toml)...解决方法pipinstallopencv-python-ihttps://pypi.tuna.tsinghua.edu.cn/simple--verbose......
  • 定位apache慢请求神器—mod_log_slow
    1.编译安装mod_log_slow1)解压tarzxfmod_log_slow-1.0.7.tar.gzcdmod_log_slow或者可以从github中检出gitclonegit://github.com/yokawasa/mod_log_slow.gitcdmod_log_slow2)打开Makefile并且修改变量ap_basedir#viMakefileap_basedir=/改成你的apache安装路径#ma......
  • 定位apache慢请求神器—mod_log_slow
    apachephp站点负载时不时高负载,但是因为上面的站点太多,太难排查到底是哪个站点引起的。nginxphp-fpm倒是好查,他有一个slowlog,可以快速的定位到出现故障的php代码位置,使用xdebug来查问题太复杂。写mod_log_slow的灵感来源于mysql的slowlog.1.编译安装mod_log_slow1)解......
  • YSlow使用指南
    在前端开发中,常常需要评估页面内容大小,请求数量,以及JS,CSS,图片等各类型文件所占的大小,以及有没有可优化的空间。那么YSlow是您必不可少的选择。YSlow简介:    YSlow是由Yahoo开发者团队发布的一款评估网站页面性能的工具,主要支持火狐(firefox)浏览器、谷歌(chrome)浏览器、欧朋(o......