【发布时间】:2015-09-13 01:00:13
【问题描述】:
我接到了一项任务,将现有的 eclipse android 工作区导入 Android Studio。我尝试了所有可能的方法,但现在的问题是我得到的工作空间是一个大型项目,它包含多个相互关联的项目和库。
起初,android studio 找不到我解决了修复 android 方面的 android 清单文件。这样做会产生新的错误,这些错误与AndroidManifest.xml 文件中使用的资源有关,例如@string/app_name。我应该如何导入完整的工作区?
该项目在 Eclipse 中运行良好,没有任何错误。
我们将非常感谢您在这方面的任何帮助或建议。
Information:Using javac 1.7.0 to compile java sources
Information:Compilation completed with 6 errors and 0 warnings in 23 sec
Information:6 errors
Information:0 warnings
G:\pgWorkspace\Pocketglobe\AndroidManifest.xml
Error:Error:line (35)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:35: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/app_icon').
Error:Error:line (35)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:35: error: Error: No resource found that matches the given name (at 'label' with value '@android:string/app_name').
Error:Error:line (35)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:35: error: Error: No resource found that matches the given name (at 'theme' with value '@style/AppTheme').
Error:Error:line (109)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:109: error: Error: No resource found that matches the given name (at 'value' with value '@string/app_id').
Error:Error:line (112)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:112: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
Error:Error:line (118)Android Resource Packaging: [pgWorkspace] G:\pgWorkspace\Pocketglobe\AndroidManifest.xml:118: error: Error: No resource found that matches the given name (at 'value' with value '@android:string/google_APIKEY')
【问题讨论】: