android studio导入eclipse项目

网上下载一个老工程,.project文件里有eclipse。

android studio导入eclipse项目

eclipse项目结构

Android studio文件结构

下面是导入步骤:

第一步,打开一个项目。

选择File->New->Import Project

第二步,选择Eclipse项目根目录文件夹

第三步,默认选择如下选项,点击Finish

根据提示点击Add google Maven repository and sync project

AS会自动检查是否需要对某些文件重构,如果有点击DO Refactor再次编译

如果碰到错误:Could not find method compile() for arguments

Could not find method compile() for arguments com.android.support:support-v4:32.+ ...

解决:将 compile 改为 implementation 即可!

如果提示错误:Could not find any version that matches com.android.support:appcompat-v4....

就改成这样:

implementation 'com.android.support:support-v4:+'

编译成功,运行成功!

参考链接:https://blog.csdn.net/Unixeyes/article/details/129815410

相关推荐
上天_去_做颗惺星 EVE_BLUE4 分钟前
Ubuntu Android 虚拟机安装使用教程
android·linux·测试工具·ubuntu·安卓
我命由我1234514 分钟前
Android 开发问题:Could not find com.github.PicnicSupermarket:FingerPaintView:1.2.
android·github·android studio·安卓·android jetpack·android-studio·android runtime
黄林晴2 小时前
Google Play 全面进化:AI 驱动增长,从上架到收入全链路重构
android·google
qq3621967052 小时前
Android 12/13/14/15 Google Play 兼容性检查指南:设备不兼容怎么办?2026最新解决方案
android·gitee
韩曙亮3 小时前
【错误记录】flutter attach 附加设备 执行报错 ( 附加设备注意事项 )
android·javascript·flutter·flutter attach
jack@london4 小时前
eclipse启动tomcat6时报错OutOfMemoryError: PermGen space
java·ide·eclipse
程思扬5 小时前
Android Room 数据库跨版本升级闪退问题根治方案
android·数据库·oracle
w1wi5 小时前
Jadx MCP/Skill
android·ai
千里马学框架5 小时前
深入剖析安卓布局uiautomator抓取工具原理
android·智能手机·性能优化·perfetto·view·安卓framework开发·布局抓取