Open MrCsabaToth opened 4 years ago
This is kinda serious for me.
The problem was that with Sceneform SDK 1.16 and up there's a breaking change: now I need to manually add the sceneformsrc
and sceneformux
directories from the SDK into my project. After the com.google.ar.sceneform.ux:sceneform-ux:1.*
has to be removed from the gradle.build file (because it's now part as a source of the app and both would result in class duplication). This only applies if someone upgrades the dependencies and the Android Studio plugin to 1.16 / 1.17 respectively. You don't want to stay behind.
As an extra, if your code uses newer androidx libraries, you need to modify the SDK's source to accommodate that and being able to be compiled.
@MrCsabaToth Is ViewRenderable
working on version 1.17
and do you have any idea why the Sceneform Repo is archived.
@MrCsabaToth Is
ViewRenderable
working on version 1.17 and do you have any idea why the Sceneform Repo is archived.
Not sure but it is very concerning for the future
I've faced the same problem as @MrCsabaToth and I've got to the point where I've had to choose:
Hope that helps. You can find my code in one of my repositories on Github
I've faced the same problem as @MrCsabaToth and I've got to the point where I've had to choose:
- Using 'com.google.ar:core:1.18.0' with the java resources that Google published long ago (in my case, I've separated that in a isolated module)
- Using sceneForm with ArFragment and not using the last version (but instead, using 'com.google.ar.sceneform:plugin:1.9.0')
Hope that helps. You can find my code in one of my repositories on Github
So you say to either drop Sceneform and work directly with ARCore (with some extra code you mention) or roll back to an earlier version of Sceneform? In the former case I'd lose majority of what Sceneform covers. The ARCore Java layer you mention - how much does that cover of the Sceneform layer? Doesn't seem much. (Comparing the https://github.com/ferPrieto/ARCoreAnchors/tree/master/ar-core/src/main/java/fernando/prieto/ar_core/ with https://github.com/CsabaConsulting/ARPhysics/tree/master/sceneformux and https://github.com/CsabaConsulting/ARPhysics/tree/master/sceneformsrc) In the latter case why so far back as 1.9? Things still worked fine with 1.12-1.14.
These days if I'd start a SceneForm project I'd rely on Thomas Gorisse's repository https://github.com/ThomasGorisse/sceneform-android-sdk instead of copying the two directories on my own and upgrading them to AndroidX on my own. Romain Guy pointed to that repository https://twitter.com/romainguy/status/1371864003882807300 See also https://csaba.page/blog/sceneform-good-news.html
I experimented with this example back in the days of 1.12 Sceneform. I wanted to take it for a spin for some new projects and it miserably fails to run. I'm at 1.17 Sceneform version and 4.0 Gradle (everything is updated to latest), 4.0 Android Studio, 1.17 Sceneform plugin. I tried both with target SDK 28 and 29.
The Animation part doesn't even complie, but that was easy to comment out and I didn't need it. After that however I get:
Now, an interesting twist: Android Studio warns me to convert the
<fragment>
incontent_main.xml
to a<androidx.fragment.app.FragmentContainerView>
(now I'm figureing out thatimplementation "androidx.preference:preference:1.1.1
suggests that). Now if I do that the filament file not found + Binary XML file line #22 uninterpretable / unactionable series of exceptions go away, but then I faced with a big fatNPE
:How can I got out of this?