无法读取... AndroidManifest.xml中 - 尝试Android的记事本教程 - 练习1记事本、练习、教程、AndroidManifest

2023-09-04 02:55:00 作者:亡屿

我的工作练习1的记事本教程

和已经做的步骤#1,和我刚开始的步骤#2 1点击文件&gt启动一个新的Andr​​oid项目;新> Android项目。 2在新的Andr​​oid项目对话框,选择从现有源创建项目。

因此​​,本教程说要单击[文件],[新],[Android项目] - 丁什么我似乎要做的就是点击 [文件],[新] [项目] [Android项目] 也许这是在教程typeo,还是我失去了一些东西?

反正事情似乎直到我按照提示点击是OK [X]创建从现有的源项目 然后我立即获得2项到错误日志中同时读取 无法读取C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \的Andr​​oidManifest.xml:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-

由于我从来没有试图从之前已有code创建一个项目,也许出事了与原来的安装,而我对面这个问题绊了吧?

如果有人真的想读它,完整的错误日志输出如下 感谢乔

= - = - = - = - = - = - = - = - = - = - = - = - = - = - =错误日志跟随 - = - = - = - = - = - = - = - = - = - =

 〜会议2011-02-16 23:08:27.651 ------------------------- ----------------------
eclipse.buildId =未知
java.version = 1.6.0_23
java.vendor = Sun微系统公司
BootLoader的常量:操作系统= Win32中,ARCH = 86,WS = Win32中,NL = EN_US
框架参数: - 产品org.eclipse.epp.package.java.product
命令行参数:-os的win32 -ws的win32 -arch 86  - 产品org.eclipse.epp.package.java.product

!ENTRY com.android.ide.eclipse.adt 4 0 2011-02-16 23:09:28.468
!MESSAGE无法读取C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \的Andr​​oidManifest.xml:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
!STACK 0
com.android.sdklib.io.StreamException:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
    在com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:92)
    在com.android.sdklib.xml.AndroidManifestParser.parse(AndroidManifestParser.java:608)
    在com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse(来源不明)
    在com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(来源不明)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.extractNamesFromAndroidManifest(Unknown资源)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.access $ 16(来源不明)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage$3.widgetSelected(Unknown资源)
    在org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    在org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    在org.eclipse.jface.window.Window.open(Window.java:801)
    在org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
    在org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    在org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    在org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:501)
    在org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:411)
    在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    在org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2221)
    在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:500)
    在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
    在sun.reflect.NativeMethodAccessorImpl.invoke(来源不明)
    在sun.reflect.DelegatingMethodAccessorImpl.invoke(来源不明)
    在java.lang.reflect.Method.invoke(来源不明)
    在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    在org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    在org.eclipse.equinox.launcher.Main.run(Main.java:1311)
致:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
    在java.io.FileInputStream.open(本机方法)
    在java.io.FileInputStream中的< INIT>(来源不明)
    在com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:90)
    ... 42更多

!ENTRY com.android.ide.eclipse.adt 4 0 2011-02-16 23:09:28.597
!MESSAGE无法读取C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \的Andr​​oidManifest.xml:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
!STACK 0
com.android.sdklib.io.StreamException:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
    在com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:92)
    在com.android.sdklib.xml.AndroidManifestParser.parse(AndroidManifestParser.java:608)
    在com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse(来源不明)
    在com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(来源不明)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.extractNamesFromAndroidManifest(Unknown资源)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.access $ 16(来源不明)
    在com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage$3.widgetSelected(Unknown资源)
    在org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    在org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    在org.eclipse.jface.window.Window.open(Window.java:801)
    在org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
    在org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    在org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    在org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:501)
    在org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:411)
    在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    在org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2221)
    在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:500)
    在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
    在sun.reflect.NativeMethodAccessorImpl.invoke(来源不明)
    在sun.reflect.DelegatingMethodAccessorImpl.invoke(来源不明)
    在java.lang.reflect.Method.invoke(来源不明)
    在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    在org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    在org.eclipse.equinox.launcher.Main.run(Main.java:1311)
致:java.io.FileNotFoundException:C:\的Andr​​iod \的Andr​​iod-SDK-的Windows \ AndroidManifest.xml中(该系统找不到指定的文件)
    在java.io.FileInputStream.open(本机方法)
    在java.io.FileInputStream中的< INIT>(来源不明)
    在com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:90)
    ... 42多〜$〜
 
不写代码能实现APP消息推送吗

解决方案

转到的Eclipse - >窗口 - > preferences ,并设置你的工作位置,Android SDK中正确

I'm working "Exercise 1" of the Notepad Tutorial

and have done step #1, and am just beginning on step #2 1 Start a new Android Project by clicking File > New > Android Project. 2 In the New Android Project dialog, select Create project from existing source.

So, the tutorial says to click [File], [New], [Android Project] -BUT- what I seem to have to do is click on [File], [New], [Project], [Android Project] Maybe this is a typeo in the tutorial, or am I missing something?

Anyway things seem to be OK until I follow the instructions to click on [x] Create project from existing source And then I instantly get 2 entries into the error log that both read Unable to read C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-

Since I have never tried to create a project from existing code before, maybe something went wrong with the original install, and I'm just stumbling across the problem now?

If anyone really wants to read it, Full error log output follows Thanks Joe

=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Error Log Follows -=-=-=-=-=-=-=-=-=-=

~ !SESSION 2011-02-16 23:08:27.651 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.java.product

!ENTRY com.android.ide.eclipse.adt 4 0 2011-02-16 23:09:28.468
!MESSAGE Unable to read C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
!STACK 0
com.android.sdklib.io.StreamException: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
    at com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:92)
    at com.android.sdklib.xml.AndroidManifestParser.parse(AndroidManifestParser.java:608)
    at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse(Unknown Source)
    at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.extractNamesFromAndroidManifest(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.access$16(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage$3.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:90)
    ... 42 more

!ENTRY com.android.ide.eclipse.adt 4 0 2011-02-16 23:09:28.597
!MESSAGE Unable to read C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
!STACK 0
com.android.sdklib.io.StreamException: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
    at com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:92)
    at com.android.sdklib.xml.AndroidManifestParser.parse(AndroidManifestParser.java:608)
    at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parse(Unknown Source)
    at com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper.parseForData(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.extractNamesFromAndroidManifest(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage.access$16(Unknown Source)
    at com.android.ide.eclipse.adt.internal.wizards.newproject.NewProjectCreationPage$3.widgetSelected(Unknown Source)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
    at org.eclipse.jface.window.Window.open(Window.java:801)
    at org.eclipse.ui.actions.NewProjectAction.run(NewProjectAction.java:117)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3910)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3503)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.io.FileNotFoundException: C:\Andriod\Andriod-SDK-Windows\AndroidManifest.xml (The system cannot find the file specified)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(Unknown Source)
    at com.android.sdklib.io.FileWrapper.getContents(FileWrapper.java:90)
    ... 42 more ~$~

解决方案

Go to Eclipse --> Window --> Preferences and set your working location for Android SDK properly.