We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Solved it by installing updates suggested by android studio
Hi,
I just tried to build the basic example in http://android.processing.org/tutorials/getting_started/index.html
processing version : 3.3.6
installed Android studio 3.0.1 and its Sdk .
I tried building a project with Apache Cordova and ionic and it works. but processing does not !
it failed with the following error :
Build folder: /tmp/android129914558782287586sketch Warning: cannot find AAR package wearable-2.0.5.aar in installed SDK, gradle will try to download. NDK is missing a "platforms" directory. If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /home/bahha/Android/Sdk/ndk-bundle. If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.
:app:preBuild UP-TO-DATE :app:preDebugBuild FAILED
FAILURE: Build failed with an exception.
What went wrong: Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not find com.google.android.support:wearable:2.0.5. Searched in the following locations: file:/home/bahha/Android/Sdk/extras/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.pom file:/home/bahha/Android/Sdk/extras/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.jar file:/home/bahha/Android/Sdk/extras/google/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.pom file:/home/bahha/Android/Sdk/extras/google/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.jar file:/home/bahha/Android/Sdk/extras/android/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.pom file:/home/bahha/Android/Sdk/extras/android/m2repository/com/google/android/support/wearable/2.0.5/wearable-2.0.5.jar https://dl.google.com/dl/android/maven2/com/google/android/support/wearable/2.0.5/wearable-2.0.5.pom https://dl.google.com/dl/android/maven2/com/google/android/support/wearable/2.0.5/wearable-2.0.5.jar https://jcenter.bintray.com/com/google/android/support/wearable/2.0.5/wearable-2.0.5.pom https://jcenter.bintray.com/com/google/android/support/wearable/2.0.5/wearable-2.0.5.jar Required by: project :app
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 10s 1 actionable task: 1 executed org.gradle.tooling.BuildException: Could not execute build using Gradle distribution 'https://services.gradle.org/distributions/gradle-4.4.1-bin.zip'. at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51) at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29) at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:41) at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57) at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) at java.lang.Thread.run(Thread.java:748) at org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46) at org.gradle.tooling.internal.consumer.DefaultBuildLauncher.run(DefaultBuildLauncher.java:77) at processing.mode.android.AndroidBuild.gradleBuild(AndroidBuild.java:287) at processing.mode.android.AndroidBuild.build(AndroidBuild.java:231) at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:315) at processing.mode.android.AndroidEditor$15.run(AndroidEditor.java:373) Caused by: org.gradle.internal.exceptions.LocationAwareException: Could not resolve all files for configuration ':app:debugCompileClasspath'.