7

I am getting an error Plugin "Google Sceneform Tools (Beta)" is incompatible (supported only in IntelliJ IDEA)**. I installed Google Sceneform Tools (Beta) plugin from plugins and after restarting the error stated above is shown. I am currently using Android Studio 4.1

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
Abhinav Gupta
  • 71
  • 1
  • 1
  • 2
  • My problem is that I cannot make the error go away: if I go to Settings > Plugins its not listed in there. Same with the Fabric plugin. – Csaba Toth Nov 18 '20 at 18:49

3 Answers3

13

TL;DR: to make the error message go away I'd suggest to manually remove the plugin because it's not listed in the installed plugin list (possibly due to the error). To do that you need to navigate to the plugin folder and delete the directory of the Sceneform plugin. The folder location is operating system dependent, assuming here that the Android Studio version is 4.1:

  • For Windows: C:\Users\{USER}\AppData\Roaming\Google or also check C:\Users\{USER}\.AndroidStudio4.1\config\plugins
  • For MacOS: ~/Library/Application\ Support/Google/AndroidStudio4.1/plugins/ (you may check out ~/Library/Application\ Support/AndroidStudio/marketplace or other places for older versions, see Where is the plugin folder for Android Studio on MAC)
  • For Linux: ~/.local/share/Google/AndroidStudio4.1/

Update: here is maintained successor of the Google Sceneform source code advised by Romain Guy: https://twitter.com/romainguy/status/1371864003882807300?s=03 https://github.com/ThomasGorisse/sceneform-android-sdk


Adding to @GokulDAS027's answer (that the plugin is deprecated) you can also see that the Sceneform Github repo (https://github.com/google-ar/sceneform-android-sdk/) is archived. Now you have to basically make sceneformsrc and sceneformux directories part of your project. See my blog post: https://csaba.page/blog/sceneform-breaking-change.html. Or just follow the archived Sceneform repository's README. One gotcha is that if you start recently you probably have an AndroidX project, and you need to upgrade Sceneform's source code to AndroidX. You can fish among the forks of the archived repository. Many people perform some code re-styling and refactoring, while I did just the necessary changes, you are welcome to just copy those two directories from the https://github.com/CsabaConsulting/ARPhysics repository.

Sceneform is an abstraction layer over ARCore. It offers great things like TransformableNode or a notch higher level abstractions than ARCore. It's up to you to decide if it offers enough features that you embrace it as a whole, or maybe you'll cherry pick. One thing you won't have though is the plugin. As we saw that provided some sfa/sfb compilation tooling and visualization panes for those objects in Android Studio. @GokulDAS027 mentions that you can use more standard formats for your models now.

Csaba Toth
  • 10,021
  • 5
  • 75
  • 121
  • 2
    Without sceneform in the plugins we can't view anymore the .glb at design time. – jake Nov 25 '20 at 00:29
  • @jake That's correct. I guess the only solution in this case is to revert to an older version of Android Studio and install the plugin manually. Then somehow convert the sfa into some other native format. – Csaba Toth Nov 25 '20 at 01:19
  • 1
    I included a module from GitHub and use the same steps as suggested but getting an error at "import android.support.annotation.Nullable;" I understood that I need to upgrade Sceneform's source code to **androidx** but how to do this I am facing difficulties. Please suggest –  Feb 12 '21 at 11:08
  • 2
    @shri120kant try `import androidx.annotation.Nullable`. If you are uncertain of an androidx import look up the corresponding file's imports and lines in https://github.com/CsabaConsulting/ARPhysics/tree/master/sceneformsrc and https://github.com/CsabaConsulting/ARPhysics/tree/master/sceneformux – Csaba Toth Feb 12 '21 at 23:52
  • 1
    @CsabaToth I'm getting the below errors which are not available in androidx import android.media.Image; import android.support.annotation.VisibleForTesting; import android.util.Log; import android.view.MotionEvent; what possible solution can I use here –  Feb 15 '21 at 05:53
  • 1
    @shri120kant Take the two folders I mentioned in my recent comments. You also need to check and adjust dependencies and their versions in your build gradle and a few more bits possibly. Please open a StackOverflow entry specifying the details, the most helpful would be if you reference your Git repo so I can look at it. – Csaba Toth Feb 15 '21 at 09:00
  • 1
    @shri120kant Once you phrase the SO post please link it here so I can take a look. – Csaba Toth Feb 15 '21 at 09:00
5

Google has deprecated the Sceneform library earlier this year. But since the library itself was opensourced, we can still use and modify it. But can't expect support for the plugin.

The plugin was intended to help loading .sfb(3d file format for Sceneform) but later, this format was ditched and started supporting the standard GLB, glTF, Obj and other formats. So probably you won't need the plugin anymore. Also, loading GLB is easy, just place it in the assets folder and load it in

ModelRenderable.builder()
        .setSource(context, Uri.parse(ASSET_LOC))
        ...
GokulDAS027
  • 714
  • 1
  • 10
  • 22
  • 1
    That's useful info. The plugin I think wasn't just about loading the SFB, but also compiling the SFB from SFA, and I think also some display view and stuff. The whole Sceneform Github repo went into archived state. My problem is that I cannot make the error go away: if I go to Settings > Plugins its not listed in there. – Csaba Toth Nov 18 '20 at 18:49
  • Ooh that's strange, maybe try finding it in market place, install it and then uninstall.. I had uninstalled it long before, so don't know about current situation. – GokulDAS027 Nov 19 '20 at 14:43
  • 1
    I ended up finding the directory on my Linux box and manually deleting the two plugins... – Csaba Toth Nov 19 '20 at 19:04
  • @CsabaToth I have the same scenario that I cannot install the plugin Sceneform, but what exactly do you mean by deleting the two plugins in my android studio plugins directory? And how do I install it? I am new to ARCore with SceneForm – jake Nov 20 '20 at 11:46
  • And since they decided to deprecate it what would be the alternatives? – jake Nov 20 '20 at 11:47
  • 1
    @jake Read my answer, I added a section addressing Sceneform. – Csaba Toth Nov 20 '20 at 18:41
  • @GokulDAS027 without the plugins we cant view the .glb at design time. – jake Nov 25 '20 at 00:31
  • 1
    @jake The only way to get SceneForm plugins work is to go back in time (possibly with a virtual environment so you wouldn't collide with your fresh stuff) and install an older Android Studio + manually install the SceneForm plugins from backups. – Csaba Toth Feb 15 '21 at 09:04
2

To make the error go away after Android Studio updation,

Just go to this path

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

You can see all the installed plugins' folders and there you have to delete the sceneform folder.