Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nothing shows up in Build Variants #21

Open
chengnay opened this issue Jan 23, 2024 · 9 comments
Open

Nothing shows up in Build Variants #21

chengnay opened this issue Jan 23, 2024 · 9 comments

Comments

@chengnay
Copy link

Issue

image
How could I resolve this issue?
I couldn't compile successfully without adding a build variant.
image

@amwatson
Copy link
Owner

Huh, I haven't seen that issue -- for reference, I normally see this:
citravr_build_variants

  1. What Android Studio version are you running?
  2. Is this the only error?
  3. Is your Android Studio project root CitraVR/src/android, or CitraVR/src/android/app?

@chengnay
Copy link
Author

  1. image
  2. It did not compile successfully, I am not sure is there other error.
  3. image

Just curious, can I clone the project by using "git clone --recursive https://github.com/amwatson/CitraVR.git" instead?
When I clone the project by "git clone --recursive git@github.com:amwatson/CitraVR.git", there is error.
image

@amwatson
Copy link
Owner

amwatson commented Jan 25, 2024

At, interesting. I just added it last night, so let me make sure it's publicly accessible. Sorry about that!

Let me look into this. Two other people have been able to build so far, which isn't a huge sample size. Thanks for your patience!

@amwatson
Copy link
Owner

amwatson commented Jan 25, 2024

Oh, I understand now. Sorry, when I first read your last response, I thought you were talking about the OpenXR submodule.

Answer: Yes, you can clone via https instead of ssh. Cloning via ssh requires your public key, whereas the https method does not.

@chengnay
Copy link
Author

Hi @amwatson,
How could I resolve the issue for not seeing anything in Build Variants and couldn't compile successfully?

@amwatson
Copy link
Owner

Hey, want to try again? Ive talked to five other devs, and they've been able to build.

I'm currently using Android Studio Hedgehog, if you want to try that

@chengnay
Copy link
Author

chengnay commented Feb 14, 2024

Just curious how long it takes to compile the project?
After I open the project, it shows
"android: Build model..."
Download info

Then it just stuck here for hours.
image
image
Is this normal? Looks like taking forever to finish.

For the Gradle JDK, can I use the one come with android studio?
The folder path is android-studio-2023.1.1.28\jbr.

Maybe there is some problem with my environment setup?

@chengnay
Copy link
Author

chengnay commented Feb 15, 2024

Not sure if others also met the same issue.
I found out that whenever it got stuck, I will need to close Android Studio, reboot PC(due to some process is not released) then open project again. After several tries, it seems to move on to compile.

image
How do I resolve above error? Do I need to install Python 3?

After the above error, I click on rebuild and I end up with below error.
`cmd.exe /C "cd . && C:\Users\chengnan_yang\Documents\Tools\android-sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\bin\clang++.exe --target=armv7-none-linux-androideabi21 --sysroot=C:/Users/chengnan_yang/Documents/Tools/android-sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -march=armv7-a -mthumb -Wformat -Werror=format-security -flto=thin -static-libstdc++ -Wl,--build-id=sha1 -Wl,--no-rosegment -Wl,--no-undefined-version -Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -fuse-ld=gold CMakeFiles/boo.dir/main.cpp.o -o boo libfoo.a -latomic -lm && cd ."

clang++: error: invalid linker name in argument '-fuse-ld=gold'`

@chengnay
Copy link
Author

Could you list the versions of the plugins that you are using?
For examples, SDK platform and NDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants