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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s