pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
83.44k stars 22.52k forks source link

android run build_pytorch_android.sh error #29799

Open mathpopo opened 4 years ago

mathpopo commented 4 years ago

šŸ› Bug

android build_pytorch_android.sh run error ## To Reproduce Steps to reproduce the behavior: 1.connect android phone 1.compiled the whole code 1.run android/run_test.sh

Expected behavior

Welcome to Gradle 5.0!

Here are the highlights of this release:

For more details see https://docs.gradle.org/5.0/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

Environment

Please copy and paste the output from our environment collection script (or fill out the checklist below manually).

You can get the script and run it with:

wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py

Versions of relevant libraries: [pip3] numpy==1.17.0 [conda] blas 1.0 mkl
[conda] magma-cuda101 2.5.1 1 pytorch [conda] mkl 2019.4 243
[conda] mkl-include 2019.4 243
[conda] mkl-service 2.3.0 py37he904b0f_0
[conda] mkl_fft 1.0.15 py37ha843d7b_0
[conda] mkl_random 1.1.0 py37hd6b4f25_0
[conda] torch 1.4.0a0+104bb57 pypi_0 pypi

Additional context

mathpopo commented 4 years ago

./scripts/build_pytorch_android.sh also have same issue.

FAILURE: Build failed with an exception.

IvanKobzarev commented 4 years ago

@mathpopo file android/gradle/release.gradle exists in the repo: https://github.com/pytorch/pytorch/blob/master/android/gradle/release.gradle

I guess that something like android studio etc. could delete /gradle/ folder for 'cleaning' of the project

If that is the case - we can think about renaming /gradle/ folder

mathpopo commented 4 years ago

@IvanKobzarev as your path ,i copy the file manually. Script '/home/Downloads/pytorch/android/gradle/release.gradle' line: 7

fangichao commented 3 years ago

when i run sh ./scripts/build_pytorch_android.sh, i got the following error: "/scripts/build_pytorch_android.sh: 33: ./scripts/build_pytorch_android.sh: check_android_sdk: not found" anyone know how to solve it? JDK \NDK\Gradle\SDK all installed already.