Android Studio:Wifi sample build error

Error message tried to build wifi sample code from Android Studio “File > import samples” maybe lol.
https://developer.android.com/studio/write/sample-code

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

 

Starting from the result, download NDK and copy file to SDK directory solved this.
But the latest NDK hasn’t “mips64el-linux-android” any longer.

android-ndk-r16b-linux-x86_64.zip

is maybe the last one which has “mips64el-linux-android”

Copied to the file to “Sdk > ndk-bundle > toolchains” solved this…

 

Download
https://developer.android.com/ndk/downloads/?hl=zh-en
Reference
https://github.com/google/filament/issues/15

Starting Android Programming: Android Studio Run Configuration Error

androidprog.jpg

Gotta this error message from Android Studio when started android programming for the first time.

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'. at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:103) at org.gradle.api.internal.

From the solvent start, set proper path of JDK was effective.
I also downloaded other SDK version for each Android version.

 

Other error message.

Edit Configuration: Error Please select Android SDK

I Logged in to Google Account

Installed many SDK versions and Tools from SDK Manager icon on Android Studio.

Right upper icon on Android Studio – Project settings (icon) > change JDK to /usr/lib/jvm/1.8

I guess my case was cause of JVM path.
Perhaps SDK was only latest one, I downloaded even the oldest one.
It expanded to 11.9GB…

Screenshot from 2018-12-05 12-58-07.jpg

Solved this !!!

 

Next execute on my tablet.
http://cg.hatenadiary.jp/entry/2015/01/02/185636

My Ubuntu didn’t recognize my tablet.

installed adb

make sure the tablet’s

developer options > usb debugging on

Use sudo usermod -aG plugdev $LOGNAME to add yourself to the plugdev group about adb command.

cd to ..

masa@em-p:~/Android/Sdk/platform-tools$ ./adb devices
List of devices attached
adb server version (32) doesn’t match this client (40); killing…
* daemon started successfully

Changed cable.
restart tablet and ubuntu resolved this.
Often usb debugging mode is don’t know why..

androidProg2