gpt4 book ai didi

android - com.example.android.apis.R 在哪里?

转载 作者:太空狗 更新时间:2023-10-29 15:17:45 26 4
gpt4 key购买 nike

所以我正在尝试完成这里的示例:

http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/graphics/SurfaceViewOverlay.html

在导入的最后一行,它说

//Need the following import to get access to the app resources, since this
//class is in a sub-package.
import com.example.android.apis.R;

问题是我从哪里得到包含这个的包?我在网上发现的信息很少,而且显然还没有,因为在我输入时它带有红色下划线。我知道这可能是一个新手问题,但嘿,我们都从某个地方开始......

最佳答案

尝试使用 android 示例应用运行此示例。

要安装和运行 Android 示例应用,请按照此处的说明进行操作:

http://developer.android.com/resources/samples/get.html

To help you get started quickly, the Android SDK includes a variety of sample code and tutorials that illustrate key concepts and techniques of Android application development. For example, the samples show the structure of the manifest file and the use of activities, services, resources, intents, content providers, and permissions. They also show how to add specialized capabilities to your apps, such as Bluetooth and Contacts integration, multiple screens support, Live Wallpaper, and more.

关于android - com.example.android.apis.R 在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11092847/

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