Android Instant Apps 示例未提取 GitHub 存储库

Android Instant Apps Samples Not Pulling GitHub Repository

当我尝试 create/import 示例并使用即时应用程序时,代码未从 GitHub 存储库中提取。有什么想法吗? 另外,我也测试了Hello World Sample(Java),GitHub Repository关联页面不存在

是的,看起来其中一些链接已损坏,或者示例项目本身不完整。

例如,当您点击 Browse source in GithubHello World (Java), you'll get a 404, and the Kotlin 似乎丢失了所有文件。

看起来像 googlesamples/android-instant-apps is going through some renovations. This is likely due to the Instant Apps model being shifted over to the App Bundle / Dynamic Features model。所以目前,最好只是在 Github 上浏览它,下载、解压缩,然后用 Android Studio 打开它,而不是尝试直接从 studio 打开它。