-
Notifications
You must be signed in to change notification settings - Fork 243
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
pls How to start app if NDK and makefile is giving me erors? #94
Comments
You should set up your NDK path by exporting it to the environment variable, as shown below: export ANDROID_NDK_HOME=$HOME/Android/Ndk/android-ndk-r27c Additionally, you will also need to set the ANDROID_HOME environment variable, like this: export ANDROID_NDK_HOME=$HOME/Android/Sdk |
I checked my NDK path, and it contains the |
well ive installed andoid studio and in setting downloaded NDK . then type hte commnads taht you reccomended and CNlohr . and i dont know what to do. i so badly want to start this app or make my own app. but its so hard((( |
try |
Now that I'm certain the issue lies with your NDK path, you should check where Android Studio has downloaded the NDK. Additionally, I can see that your environment is WSL. Did you download the Windows version of Android Studio? Installing Android Studio on WSL is not straightforward, as you first need to set up a desktop environment within WSL. If you're using WSL, you can install only the command-line tools from the Command line tools only section at the bottom of this page, instead of installing Android Studio. Then, use sdkmanager to manually install the Android SDK. Next, go to the NDK page to download the NDK. After extracting everything, export the environment variables, and then run |
i have dowloaded windows Andoid studio fully on windows. |
where should i install comand tools? in disc c? in root? or in AppData? |
|
ohhh. i cant understand what to do everything is now again giving errors. pls chaosgoo give the working easy steps to run this )))pls im beggin you. |
I noticed that the repository supports building using Docker. Here, I will summarize the content of the Docker file. Enter your wsl environment. Follow these steps. Download Android SDK wget -c https://dl.google.com/android/repository/commandlinetools-linux-6200805_latest.zip -O ~/temp.zip Set ANDROID_HOME Environment variable export ANDROID_SDK_HOME=~/android-sdk Unzip SDK files. unzip -d ${ANDROID_SDK_HOME} temp.zip Process Android SDK licenses yes | $ANDROID_SDK_HOME/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} --licenses Download requirement build toolchains. $ANDROID_SDK_HOME/tools/bin/sdkmanager --sdk_root=${ANDROID_SDK_HOME} "build-tools;29.0.3" "cmake;3.10.2.4988404" "ndk;21.1.6352462" "platform-tools" "platforms;android-29" "tools" Set ANDROID_NDK_HOME export ANDROID_NDK_HOME=$ANDROID_SDK_HOME/ndk/21.1.6352462 Clone rawandroid, it is recommended to clone it to a location where you can easily find it, as we will need to use the constructed APK file later, and you wouldn't want to lose it. git clone https://github.com/cnlohr/rawdrawandroid.git cd dir cd rawdrawandroid I checked the downloaded NDK 21.1.6352462, and it supports up to Android Version 29, so we need to make a slight modification to the Makefile in the repository. Find the line ANDROIDVERSION?=30 on line 21 and change it to ANDROIDVERSION?=29. make keystore At this point, there is a divergence depending on whether your Android device is directly connected to the PC via USB or if the Android device has remote debugging enabled. Since I am not sure which method you are using, I will only build the APK file. make makecapk.apk As for installing the APK, I don't think it needs any introduction, does it? |
nahhh. shit . doesnt work. seems like i failing. |
Cant go through this
➜ ~ cd rawdrawandroid
➜ rawdrawandroid git:(master) make keystore
Makefile:77: *** NDK directory not found. Stop.
➜ rawdrawandroid git:(master) cd rawdrawandroid
cd: no such file or directory: rawdrawandroid
➜ rawdrawandroid git:(master) cd
➜ ~ git clone https://github.com/lzhiyong/termux-ndk.git
Cloning into 'termux-ndk'...
remote: Enumerating objects: 597, done.
remote: Counting objects: 100% (151/151), done.
remote: Compressing objects: 100% (121/121), done.
remote: Total 597 (delta 26), reused 125 (delta 17), pack-reused 446 (from 1)
Receiving objects: 100% (597/597), 4.40 MiB | 14.59 MiB/s, done.
Resolving deltas: 100% (129/129), done.
➜ ~ cd rawdrawandroid/
➜ rawdrawandroid git:(master) make keystore
Makefile:77: *** NDK directory not found. Stop.
The text was updated successfully, but these errors were encountered: