gpt4 book ai didi

java - JAR 文件 C :\sdk\platforms\android-18\android. jar 没有源附件。您可以通过单击下面的附加源来附加源

转载 作者:搜寻专家 更新时间:2023-11-01 01:08:10 25 4
gpt4 key购买 nike

我收到一条错误消息:

The JAR file C:\sdk\platforms\android-18\android.jar has no source attachment. You can attach the source by clicking attach source below.

但是我点击了附加源按钮并添加了 C:\sdk\platforms\android-17\android.jar 然后它只是给了我:

Source not found. The source attachment does not contain the source for the file Activity.class. You can change the source attachment by clicking Change Attached Source below.

最佳答案

首先确保您已经通过 Android SDK 管理器下载了您在项目中使用的 android 版本的源文件:http://developer.android.com/sdk/installing/adding-packages.html

然后右键单击您的项目并选择属性,从左侧菜单中选择“Java Build Path”,选择右侧的“Libraries”选项卡,单击展开“Android X.X.X”,单击展开“android.jar” ",然后双击“源附件:”项。

在弹出窗口中,选择“外部位置”,单击“外部文件夹”,然后浏览到适用于之前选择的“Android X.X.X”的 android-sdk/sources/android-xx。选择确定关闭对话框,您应该设置好了!

关于java - JAR 文件 C :\sdk\platforms\android-18\android. jar 没有源附件。您可以通过单击下面的附加源来附加源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19189505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com