eclipse不编译,不生成apk,Could not find xxx.apk的解决办法

本文介绍如何在Android项目中移除不必要的jar包,并通过修改project.properties文件来优化target版本配置。通过此过程,可以提升项目的编译效率并确保资源的有效利用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

移除工程中不用的jar包。
project.properties文件中,如果没有其他手写配置,把多余的前面没有"#"的代码去掉,留下target=android-x(x 是自动根据android库编译的版本号),如下图。然后编译工程。

# This file is automatically generated by Android Tools.
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
#
# This file must be checked in Version Control Systems.
#
# To customize properties used by the Ant build system use,
# "ant.properties", and override values to adapt the script to your
# project structure.
target=android-4
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值