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

Build Issue[1.0] #33901

Open
aniketkumar04 opened this issue Jun 13, 2024 · 0 comments
Open

Build Issue[1.0] #33901

aniketkumar04 opened this issue Jun 13, 2024 · 0 comments
Labels

Comments

@aniketkumar04
Copy link

aniketkumar04 commented Jun 13, 2024

### Reproduction steps

I was trying to build the project and followed the steps mention in the build guide: https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/BUILDING.md#installing-prerequisites-on-linux

PC: UBUNTU 22.04

Below are the errors I am getting after export command:

export ANDROID_HOME=/home/aniket.kumar/matter/android2/platform-tools
export ANDROID_NDK_HOME=
/home/aniket.kumar/matter/android2/android-ndk-r26d

Folder structure:
SDK
aniket.kumar@si:~/matter/android2/platform-tools/cmdline-tools/latest/bin$ ls
apkanalyzer avdmanager lint profgen resourceshrinker retrace screenshot2 sdkmanager

aniket.kumar@si~/matter/android2/platform-tools/tools/bin$ ls
sdkmanager

aniket.kumar@si:~/matter/connectedhomeip$ ./scripts/build/build_examples.py --target android-arm64-chip-tool build
2024-06-13 12:29:34 INFO Building targets: android-arm64-chip-tool
2024-06-13 12:29:34 INFO Preparing builder 'android-arm64-chip-tool'
2024-06-13 12:29:34 INFO Generating /home/aniket.kumar/matter/connectedhomeip/out/android-arm64-chip-tool
2024-06-13 12:29:34 INFO Setting up Android deps through Gradle
2024-06-13 12:29:34 INFO > Task :buildSrc:compileJava NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:compileGroovy UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:processResources NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:classes UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:jar UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:assemble UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:compileTestJava NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:compileTestGroovy NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:processTestResources NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:testClasses UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:test NO-SOURCE
2024-06-13 12:29:34 INFO > Task :buildSrc:check UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :buildSrc:build UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :copyArtifacts UP-TO-DATE
2024-06-13 12:29:34 INFO > Task :setUpAndroidDeps
2024-06-13 12:29:34 INFO
2024-06-13 12:29:34 INFO BUILD SUCCESSFUL in 731ms
2024-06-13 12:29:34 INFO 4 actionable tasks: 1 executed, 3 up-to-date
2024-06-13 12:29:35 INFO Command ['python3', 'third_party/android_deps/set_up_android_deps.py'] completed
2024-06-13 12:29:35 INFO Setting up Java deps
2024-06-13 12:29:35 INFO Command ['third_party/java_deps/set_up_java_deps.sh'] completed
Traceback (most recent call last):
File "/home/aniket.kumar/matter/connectedhomeip/./scripts/build/build_examples.py", line 234, in
main(auto_envvar_prefix='CHIP')
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/core.py", line 1130, in call
return self.main(*args, **kwargs)
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/core.py", line 1688, in invoke
rv.append(sub_ctx.command.invoke(sub_ctx))
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/aniket.kumar/matter/connectedhomeip/.environment/pigweed-venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/home/aniket.kumar/matter/connectedhomeip/./scripts/build/build_examples.py", line 224, in cmd_build
context.obj.Build()
File "/home/aniket.kumar/matter/connectedhomeip/scripts/build/build/init.py", line 67, in Build
self.Generate()
File "/home/aniket.kumar/matter/connectedhomeip/scripts/build/build/init.py", line 62, in Generate
builder.generate()
File "/home/aniket.kumar/matter/connectedhomeip/scripts/build/builders/android.py", line 355, in generate
self.validate_build_environment()
File "/home/aniket.kumar/matter/connectedhomeip/scripts/build/builders/android.py", line 177, in validate_build_environment
raise Exception(
Exception: '/home/aniket.kumar/home/aniket.kumar/matter/android2/platform-tools/tools/bin/sdkmanager' and '/home/aniket.kumar/home/aniket.kumar/matter/android2/platform-tools/cmdline-tools/latest/bin/sdkmanager' is not executable by the current user

Please let me know what is going wrong here.

Bug prevalence

2

GitHub hash of the SDK that was being used

android-ndk-r26d

Platform

android

Platform Version(s)

No response

Type

Platform Issue

Anything else?

NA

@aniketkumar04 aniketkumar04 added bug Something isn't working needs triage V1.0 labels Jun 13, 2024
@github-actions github-actions bot added the linux label Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant