簡體   English   中英

'插件“Google Sceneform Tools (Beta)”不兼容(僅在 IntelliJ IDEA 中支持)'

[英]'Plugin "Google Sceneform Tools (Beta)" is incompatible (supported only in IntelliJ IDEA)'

我收到錯誤插件“Google Sceneform Tools (Beta)”不兼容(僅在 IntelliJ IDEA 中受支持)**。 我從插件安裝了 Google Sceneform Tools (Beta) 插件,並在重新啟動后顯示上述錯誤。 我目前使用的是 Android Studio 4.1

TL; DR:為了使錯誤消息消失,我建議手動刪除插件,因為它未列在已安裝的插件列表中(可能是由於錯誤)。 為此,您需要導航到插件文件夾並刪除 Sceneform 插件的目錄。 文件夾位置取決於操作系統,這里假設 Android Studio 版本為 4.1:

  • 對於WindowsC:\\Users\\{USER}\\AppData\\Roaming\\Google或檢查C:\\Users\\{USER}\\.AndroidStudio4.1\\config\\plugins
  • MacOS : ~/Library/Application\\ Support/Google/AndroidStudio4.1/plugins/ (你可以查看~/Library/Application\\ Support/AndroidStudio/marketplace或其他地方的舊版本,請參閱Android的插件文件夾在哪里MAC上的工作室
  • 對於Linux~/.local/share/Google/AndroidStudio4.1/

更新:這里是 Romain Guy 建議的 Google Sceneform 源代碼的繼任者: https : //twitter.com/romainguy/status/137186​​4003882807300?s =03 https://github.com/ThomasGorisse/sceneform-android-sdk


添加到@GokulDAS027 的答案(該插件已棄用),您還可以看到Sceneform Github 存儲庫( https://github.com/google-ar/sceneform-android-sdk/ )已存檔。 現在,您必須基本上將sceneformsrcsceneformux目錄作為項目的一部分。 請參閱我的博客文章: https : //csaba.page/blog/sceneform-b​​reak-change.html 或者只需遵循存檔的 Sceneform 存儲庫的自述文件。 一個問題是,如果您最近開始使用,您可能有一個AndroidX項目,並且您需要將 Sceneform 的源代碼升級到AndroidX 您可以在存檔存儲庫的分支中釣魚。 許多人進行了一些代碼重新設計和重構,而我只做了必要的更改,歡迎您從https://github.com/CsabaConsulting/ARPhysics存儲庫中復制這兩個目錄。

Sceneform 是 ARCore 之上的抽象層。 它提供了一些很棒的東西,比如TransformableNode或者比 ARCore 更高層次的抽象。 由您決定它是否提供足夠的功能讓您將其作為一個整體來接受,或者您可能會選擇。 你不會擁有的一件事是插件。 正如我們所見,它為 Android Studio 中的這些對象提供了一些 sfa/sfb 編譯工具和可視化窗格。 @GokulDAS027 提到您現在可以為模型使用更多標准格式。

今年早些時候,谷歌已經棄用了 Sceneform 庫。 但是由於庫本身是開源的,我們仍然可以使用和修改它。 但不能指望對插件的支持。

該插件旨在幫助加載.sfb.sfb 3d 文件格式),但后來這種格式被拋棄並開始支持標准的 GLB、glTF、Obj 和其他格式。 所以你可能不再需要這個插件了。 此外,加載 GLB 很容易,只需將其放在資產文件夾中並加載到

ModelRenderable.builder()
        .setSource(context, Uri.parse(ASSET_LOC))
        ...

為了使錯誤在 Android Studio 更新后消失,

只要走這條路

  • 對於 Windows - C:\\Users\\User Name\\AppData\\Roaming\\Google\\AndroidStudio4.1\\plugins
  • 對於 Linux - ~/.local/share/Google/AndroidStudio4.1/plugins

您可以看到所有已安裝插件的文件夾,然后您必須刪除sceneform 文件夾。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM