CariusLars / ar_flutter_plugin

Flutter Plugin for AR (Augmented Reality) - Supports ARKit on iOS and ARCore on Android devices
MIT License
318 stars 229 forks source link

Errors showing up as soon as the project examples are loaded into android studio. #153

Open Charith0401 opened 1 year ago

Charith0401 commented 1 year ago

Hi! I'm quite new to app development and right now I'm trying to learn how to develop an AR indoor navigation app using flutter. I tried to use this plugin in my project however the moment I load the examples from this project into android studio so many errors pop up I tried changing the compilersdkversion and I got the dependencies but the errors are still showing up could someone please help me with it ? I feel like I'm doing something wrong as everyone else doesn't seem to be having the same issue as I am.

I'll attach a photo for anyone to take a look at and see some of the errors as well. Thanks in advance!

Link to the photo: errorlist

nsvetlakov commented 1 year ago

the same problem!!!

giovannicampagnolo commented 1 year ago

Hi man because you probably are using flutter with null safety because the latest versions of flutter have it, if you don't initialize a variable you ave to put ? after the type.

E.g

ARSessionManager? arSessionManager; ARObjectManager? arObjectManager; ARAnchorManager? arAnchorManager;

and it is the cause of your errors @OfficialImmortal

nsvetlakov commented 1 year ago

Hi man because you probably are using flutter with null safety because the latest versions of flutter have it, if you don't initialize a variable you ave to put ? after the type.

well, that's understandable. Why is this not present in the example when the package was updated 9 days ago.

Looks like a super old example.

giovannicampagnolo commented 1 year ago

yes the example are old we need to fork it

nsvetlakov commented 1 year ago

yes the example are old we need to fork it

maybe you know who made the fork??

giovannicampagnolo commented 1 year ago

yes don't worry i fork tonight

nsvetlakov commented 1 year ago

yes don't worry i fork tonight

could you attach a link to your fork here?

CariusLars commented 1 year ago

Make sure to PR back to this repo from your fork so others can benefit from your fix as well :)

nsvetlakov commented 1 year ago

yes don't worry i fork tonight

Hello, what about fork ??

giovannicampagnolo commented 1 year ago

sorry i had a lot of work now i try to do it

giovannicampagnolo commented 1 year ago

@CariusLars i made the PR we wait you now

jtkeyva commented 1 year ago

hi yes, the example is unusable on my end after trying different flutter versions and changing sdk to 2.12 etc. look forward to working examples. thanks

giovannicampagnolo commented 1 year ago

i fix it, i made the pull request to @CariusLars

nsvetlakov commented 1 year ago

i fix it, i made the pull request to @CariusLars

It would be great to fix this as well.

I took it from your fix

Снимок экрана 2022-11-13 в 14 50 46
giovannicampagnolo commented 1 year ago

you had to augment the compileSdkVersion on build.gradle @nsvetlakov

nsvetlakov commented 1 year ago

you had to augment the compileSdkVersion on build.gradle @nsvetlakov

how fix this??

: Error: Member not found: 'FirebaseAppPlatform.verifyExtends'.
../…/src/firebase_app.dart:18
    FirebaseAppPlatform.verifyExtends(_delegate);
                        ^^^^^^^^^^^^^
nsvetlakov commented 1 year ago

Hooray! Launched!

giovannicampagnolo commented 1 year ago

maybe your dependencies dosen't support verifyExtends method

nsvetlakov commented 1 year ago

maybe your dependencies dosen't support verifyExtends method

in pubspec.yaml put

dependency_overrides:
  firebase_core_platform_interface: 4.5.1

and download Firebase google-services.json that's it

nsvetlakov commented 1 year ago

i fix it, i made the pull request to @CariusLars

How can I make the 3d model appear when hovering over an image? I can't find such a method. It seems like in ARCore this was also in ARKit

giovannicampagnolo commented 1 year ago

open another issue, is different then this

nsvetlakov commented 1 year ago

open another issue, is different then this

done. Thanks

othy1010 commented 1 year ago
Снимок экрана 2022-11-13 в 14 50 46

You can solve the issue by removing everything related to firebase if you just want to test the plugin, also don't forget google services on the gradle files it work fine by then. you can try the code in https://github.com/othy1010/test_AR_plugin .