Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all 941 articles
Browse latest View live

modifying wallpaper parameters

$
0
0

I think that the possibility to create live wallpapers for android through processing is very fashinating. However once you create the wallpaper you can only set it in the background of your phone through the live wallpaper selector of your mobile, and you can't change any parameter and you can't see the icon in the menu.

Many live wallpapers on the google play store are structured in such a way that you firstly download it as a normal app, secondly, you can see the icon, and by tapping on it you can change the several parameters of the live wallpaper. Finally, usually in this screen there is a button that opens the live wallpaper selector of the mobile, with the preview of the live wallpaper in question yet open(so that you just need to click "apply").

Is there a way to achieve these features through processing?

Thanks.


Processing compilation error with AndroidMode 4.0

$
0
0

Hi,

I ran in some issue installing processing on my new PC. OS: Windows 10 64bits Processing: 3.3.6 I tried the solution from this discussion https://forum.processing.org/two/discussion/25689/can-t-get-processing-to-see-the-sdk#latest but an error appears when I type the sdkmanager command

C:\Users\ADMIN\AppData\Local\Android\Sdk\tools\bin>sdkmanager "build-tools;26.0.0"
Exception in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/annotation/XmlSchema
        at com.android.repository.api.SchemaModule$SchemaModuleVersion.<init>(SchemaModule.java:156)
        at com.android.repository.api.SchemaModule.<init>(SchemaModule.java:75)
        at com.android.sdklib.repository.AndroidSdkHandler.<clinit>(AndroidSdkHandler.java:81)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:73)
        at com.android.sdklib.tool.sdkmanager.SdkManagerCli.main(SdkManagerCli.java:48)
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.annotation.XmlSchema
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        ... 5 more

I've installed jdk-9.0.1

I tried the solution described here: https://forum.processing.org/two/discussion/25836/problem-with-installing-android-sdk#latest

When asked by Processing,I specified the SDK folder manually to C:\Users\ADMIN\AppData\Local\Android\Sdk

The script starts compiling but I end up with this error

1. ERROR in C:\Users\ADMIN\AppData\Local\Temp\android7555099663370003499sketch\app\src\main\java\processing\test\ac_controller\ac_controller.java (at line 321)
    startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);
    ^^^^^^^^^^^^^^^^^^^^^^
The method startActivityForResult(Intent, int) is undefined for the type ac_controller
----------
1 problem (1 error)
 FAILED

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\ADMIN\AppData\Local\Temp\android7555099663370003499sketch\app\build.gradle' line: 62

* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Process 'command 'D:\Formation\Processing\processing-3.3.6\java\bin\java.exe'' finished with non-zero exit value -1

Any idea on what I'm missing?

Thanks in advance

How to scan wifi networks

$
0
0

Hi everyone, im trying to scan al available networks, and with the help of some other post i have the following code:

import java.util.List;
import android.content.Context;
import android.net.wifi.WifiManager;
import android.net.wifi.WifiConfiguration;
import android.net.wifi.ScanResult;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiConfiguration.KeyMgmt;
import android.app.Activity;

Activity act;
Context context;
WifiManager wm;
List<ScanResult> results;
WifiInfo wifiInfo ;

boolean primeraVez = true;

void setup() {

  fullScreen();
  act = this.getActivity();
  context = act.getApplicationContext();
}
void draw() {
  textSize(height/18);


  if (primeraVez) {
    primeraVez = false;
    WifiManager wifiManager = (WifiManager)context.getSystemService(Context.WIFI_SERVICE);
    wifiManager.startScan();
    List<ScanResult> result = wifiManager.getScanResults();
    println(result);
  }
}

the intention was to print all the available networks but i'm only obtaining an empty array "[]" over the console, what am i doing wrong?

the code may have some useless parts

Grafica library and android

$
0
0

Hello, i want to know if the grafica library has any problem in Android mode of Processing i3.Because after i made a programm using the grafica library, i tried to turn the mode from Java to Android, so i would create an app but it showed be the bellow error:

:app:mergeDebugAssets
:app:transformClassesWithDexForDebugDex: Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.
    UNEXPECTED TOP-LEVEL EXCEPTION:

Trouble Installing

$
0
0

Hi, I have installed Android Mode for Processing and I am having trouble installing it. I tell it to download and install the Android SDK, but after it downloads around 150MB of the sdk, the window closes and gives me the error "SDK could not be loaded". I have tried downloading the command line tools from the Android Studio download page, but it still gives me the same error.

Bluetooth List devices array

$
0
0

Hello, I have been looking at other examples on the forum of getting a bluetooth device connected on an Android device. I have the below code successfully working. I'm not using the popular Ketai library because I want to utilise RSSI signal and display all discoverable devices and RSSI signal strength on the canvas.

This is the point at which I am stuck. I have one discoverable device displayed and if a new device is discovered this supersedes the last one. However, I would prefer to add each discovered device into an ArrayList to get its name and its rssi info further up the draw loop for future drawing methods. I have the below code compiling but I don't think how I have written the ArrayList is correct as I am unable to access get() and size() in the draw loop.

In short I am not understanding my ArrayList method very well when used with the Bluetooth Android class.

Any advice or pointers would be greatly appreciated. Thanks

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;

import android.os.Looper;
import android.app.Activity;
import android.app.Fragment;

import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;

Activity act;
Context mc;

String discoveredDeviceName;
String device;
short rssi;
boolean foundDevice=false; //When this is true, the screen turns green.
ArrayList<String> devicesDiscovered = new ArrayList();


//Get the default Bluetooth adapter
BluetoothAdapter bluetooth = BluetoothAdapter.getDefaultAdapter();

void setup()
{
  fullScreen();
  orientation(LANDSCAPE);
  textSize(28);
  textAlign(CENTER, CENTER);
  fill(225);

  /*IF Bluetooth is NOT enabled, then ask user permission to enable it */
  if (!bluetooth.isEnabled()) {
    Intent requestBluetooth = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);
    this.getActivity().startActivityForResult(requestBluetooth, 0);
  }

  /*If Bluetooth is now enabled, then register a broadcastReceiver to report any
   discovered Bluetooth devices, and then start discovering */
  if (bluetooth.isEnabled()) {
    this.getActivity().registerReceiver(myDiscoverer, new IntentFilter(BluetoothDevice.ACTION_FOUND));
    //registerReceiver(myDiscoverer, new IntentFilter(BluetoothDevice.ACTION_FOUND));
    //Start bluetooth discovery if it is not doing so already
    if (!bluetooth.isDiscovering()) {
      bluetooth.startDiscovery();
    }
  }
}

void draw()
{

  background(25, 25, 220);



  if (foundDevice) {
    background(0, 255, 0, 100);
    fill(0);
    text("Found Device" +discoveredDeviceName+"\nRSSI: " + abs(rssi), width/2, (height/2+150));


   //cannot access get() and size()
    //for (int i = 0; i < device.size(); i++) {
    //text(device.get(i), 10, 10);
    //}
  }


  //update the RSSI values every 10th of a frame.
  if (frameCount%10==0) {
    discoverDevices();
    //  delay(500);//don't use delay in Processing.
  }
}

public void discoverDevices() {
  if (bluetooth.isDiscovering()) {
    if (frameCount%5==0) {
      bluetooth.cancelDiscovery();
    }
    //delay(100); // DONT CHANGE 100ms GOOD VALUE
    bluetooth.startDiscovery();
  } else {
    bluetooth.startDiscovery();
  }
}


@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
  if (requestCode==0) {
    if (resultCode == 1) {
      text("Bluetooth has been switched ON", 10, 10);
    } else {
      text("You need to turn Bluetooth ON !!!", 10, 10);
    }
  }
}

/* Create a Broadcast Receiver that will later be used to
 receive the names of Bluetooth devices in range. */
BroadcastReceiver myDiscoverer = new myOwnBroadcastReceiver();

/* This BroadcastReceiver will display discovered Bluetooth devices */
public class myOwnBroadcastReceiver extends BroadcastReceiver {
  @Override
    public void onReceive(Context context, Intent intent) {
    discoveredDeviceName = intent.getStringExtra(BluetoothDevice.EXTRA_NAME);
    rssi = intent.getShortExtra(BluetoothDevice.EXTRA_RSSI, Short.MIN_VALUE);
    println("RSSI: " + rssi);
    //Display the name of the discovered device
    println("Discovered: " + discoveredDeviceName);

    //Change foundDevice to true which will make the screen turn green
    foundDevice=true;

    devicesDiscovered.add(discoveredDeviceName + "\n" + rssi);
    for (String device : devicesDiscovered) {

      printArray(device);
    }
  }
}

How much data can OnBluetoothDataEvent cope with on a modern smartphone?

$
0
0

I am using OnBluetoothDataEvent via the ketai library on a Samsung S7 Edge. I am dribbling about 1k bytes of data per second to it over bluetooth from an HC-06 serial passthrough module, at 115200 BAUD, 6 bytes every 8ms, and now and again it loses between 1-5 bytes. The S7 cpu usage never gets above ~11%. What is a realistic capacity for a bluetooth link on a modern smartphone?

Microphone not working same on different devices

$
0
0

Hello,

I'm trying to get volume detection working on 3 different devices, on the first one, everything works as I want it to, on the second device, the initialisation doesn't work, but volume detection works, and on the third device nothing works. I think that it's weird, because on every device I use I've installed the same application, but it works so differently.

I've given this app needed permissions.

Basically, I want the application to "calibrate" whenever the app starts, which works on one device, on other two it get's stuck on 150. After that I want the application to detect the volume and whenever the volume is above the threshold, I want to do something. It works on two devices. I also unload the microphone after stopping the application.

Please tell me if I'm doing something, if it's not my fault, please tell me the workaround, I need to have this app working 'till Friday.

so I initialise my microphone with the following snippet

int freq =44100; int chan = AudioFormat.CHANNEL_IN_MONO; int enc = AudioFormat.ENCODING_PCM_16BIT; int src = MediaRecorder.AudioSource.MIC; buflen = AudioRecord.getMinBufferSize(freq, chan, enc); audioRecord = new AudioRecord(src, freq, chan, enc, buflen); if (audioRecord != null) { audioRecord.startRecording(); } buffer = new short[bufferSize];

and I calibrate/set the threshold using this snippet

void calibrate() { int bufferReadResult = audioRecord.read(buffer, 0, bufferSize); volume = 100; for (int i = 0; i < bufferReadResult; i++) { volume = Math.max(Math.abs(buffer[i]), volume); } treshold = volume+50; }

Microphone unload method

void stop() { audioRecord.stop(); audioRecord.release(); audioRecord = null; }

Thanks for taking your time and helping me out!


Does Processing3 (v3.3.6) in Android mode restrict frameRate() from going higher than ~60fps?

$
0
0

While testing my S7 Edge capabilities, I ran the following sketch:

void setup() { frameRate(10000); } void draw() { println(frameRate); }

It never rises above around 63-65fps, and the CPU usage sits around 10%, and no other apps are running in the background. I am aware that this sketch can produce far higher fps in other devices. Is this limit configurable somewhere?

Spoiled the processing((((

$
0
0

all the good day.

1) why PApplet does not inherit from Fragment ???.

2) how to create PApplet in a new thread ???.

3) I want that at me PApplet it was displayed in View element and in a new flow in half of the screen earlier I could simply make it now neznaju how it to make ???.

I can't export package. Processing told me: the sketch does not include all required app.icons

$
0
0

I have done all wath "kfrajer" advice, and I have consulted all the information about the requiered icons. But I couldn´t export the package. Could somebody help me? thanks

Heavy image compression / banding

$
0
0

Hello, I am trying to load images in my app but once displayed they turn out to look very heavily compressed, making them not usable for what I am doing. Is there a way to turn off this automatic compression? This is a screenshot of what was originally a smooth gradient

loadStrings(url) isn't working on Android mode

$
0
0

Hello,

when I tried changing the mode from Java, where the program was working, to Android mode, where I get the path separator error.

I'm putting in the following code, on which it crashes

loadStrings("http://mglolenstine.xyz/test.txt");

and I get the following error:

` FATAL EXCEPTION: Animation Thread Process: processing.test.monitor, PID: 19520 java.lang.IllegalArgumentException: File http://mglolenstine.xyz/text.txt contains a path separator at android.app.ContextImpl.makeFilename(ContextImpl.java:1944) at android.app.ContextImpl.getFileStreamPath(ContextImpl.java:549) at android.content.ContextWrapper.getFileStreamPath(ContextWrapper.java:193) at processing.core.PSurfaceNone.getFileStreamPath(Unknown Source) at processing.core.PApplet.sketchPath(Unknown Source) at processing.core.PApplet.createInputRaw(Unknown Source) at processing.core.PApplet.createInput(Unknown Source) at processing.core.PApplet.loadStrings(Unknown Source) at processing.test.trtl_monitor.Monitor.draw(Monitor.java:55) at processing.core.PApplet.handleDraw(Unknown Source) at processing.core.PSurfaceNone.callDraw(Unknown Source) at processing.core.PSurfaceNone$AnimationThread.run(Unknown Source)

`

And I don't understand... I've read this article, but it doesn't seem to help me, as the OP fixed it by adding HTTP:// in front of 'his' url.

The com.google.android cannot be resolved

$
0
0

Hi everyone,

Sorry for my bad English, I'll try to write correctly.

I made an app with processing for android and I published it on play store as an alpha test. Now I want to put ads on the app but I have many troubles. First of all, processing cannot resolve the import of com.google.android. I added the line "compile 'com.google.android.gms:play-services-ads:11.8.0'" in the build.gradle in the "app" folder, as told by the official guide, but nothing changed.

has the problem already been solved? How can I solve it?

Thanks you all

onActivityResult, startActivityForResult and SDK API 10 Errors

$
0
0

So, I am trying to learn Android mode thru Scott C's 4 part tutorial. here at http://arduinobasics.blogspot.com/2013/03/arduino-basics-bluetooth-android.html

The problem is when I try to simulate his Android/Processing Sketch 3: BluetoothChecker2 on my phone, I get several errors on the onActivityResult and startActivityForResult.

the function onActivityResult does not exist somehow so it might by a problem with the library and for the startActivityForResult I am having errors on @Override.

I am currently running sketch on Processing 3.0 and API 22 but Scott's settings on that time he made the tutorial was on Processing 2.0 Beta and API 10. The reason why i am running on API 22 is because I cannot seem to target the API 10 SDK even though I have already downloaded it using SDK Manager.


Not able to run the code in android mode

$
0
0

There is this small code, i want to run in android mode. it gives a error saying : '' Dex: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' . "

This is the code:

import ddf.minim.*; import ddf.minim.analysis.*;

Minim minim; AudioPlayer song; FFT fft;

void setup() { size(512, 200); minim = new Minim(this); song = minim.loadFile("jingle.mp3", 512); song.play(); fft = new FFT(song.bufferSize(), song.sampleRate()); }

void draw() { background(0); fft.forward(song.mix); stroke(255, 0, 0, 128); for(int i = 0; i < fft.specSize(); i++) { line(i, height, i, height - fft.getBand(i)*4); }

stroke(255); for(int i = 0; i < song.bufferSize() - 1; i++) { line( i, 50 - song.left.get(i)50, i+1, 50 - song.left.get(i+1)50 ); line( i, 150 - song.right.get(i)50, i+1, 150 - song.right.get(i+1)50 ); }

}

Please help

How to save a string on android without "contains a path separator" ERROR

$
0
0

Alright so my code is basically:

int gun; gun = int(loadStrings("gun.txt"));

I get an error about a path separator. The code used to be "data/gun.txt" instead of "gun.txt" because of the error. Didn't fix it. I have tried another thread but it didn't work and this problem for some reason isn't asked often according to me not finding anything so can anyone help?

How to fix these Android Mode problems?

$
0
0

After facing more issues with the Android Mode in the last two days I think I got to the last problem: when I'm trying to run the code in the emulator it' says:

debug:
adb -s emulator-5554 install -r C:\Users\----\AppData\Local\Temp\android2772852432485972243sketch\bin\sketch_150308a-debug.apk
    status: 1
    200ms
    stdout:
rm failed for -f, Read-only file system
    stderr:
failed to copy 'C:\Users\----\AppData\Local\Temp\android2772852432485972243sketch\bin\sketch_150308a-debug.apk' to '/data/local/tmp/sketch_150308a-debug.apk': No such file or directory
Shutting down any existing adb server...
Exception in thread "AndroidDevice: logcat process monitor" java.lang.IllegalStateException: I didn't know about device emulator-5554!
    at processing.mode.android.Devices.deviceRemoved(Devices.java:245)
    at processing.mode.android.Device.shutdown(Device.java:258)
    at processing.mode.android.Device$1.run(Device.java:241)
    at java.lang.Thread.run(Unknown Source)
Exception in thread "AndroidDevice: logcat process monitor" java.lang.IllegalStateException: I didn't know about device emulator-5554!
    at processing.mode.android.Devices.deviceRemoved(Devices.java:245)
    at processing.mode.android.Device.shutdown(Device.java:258)
    at processing.mode.android.Device$1.run(Device.java:241)
    at java.lang.Thread.run(Unknown Source)

When I'm trying to run it on my android phone directly, nothing happens. After "debug:" doesn't write anything. Its not even detecting the device: Android > Select Device > "No connected devices". The computer recognized it (in My Computer > Portable Devices) when I pluged the USB in... and yes, I activated the "USB debugging mode" on my phone. Sorry if I wrote anything incorrectly, English is not my mother language. I hope somebody can help me. :((

Is there a discussion in this forum about loading and visualising tables?

$
0
0

I want to load a table in processing i3 from excel from any form and visualise it in adroid mode.. I cant find here a similar discussion..

New to processing- trying to build a simple android app. getting a gradle error. Help???

$
0
0

Howdy,

I'm new to Processing and trying to build a very simple app to run on my android.

Getting the following error. Any suggestions would be greatly appreciated!!!!

Build folder: C:\Users\davef\AppData\Local\Temp\android1587529277536989285sketch
:app:preBuild UP-TO-DATE
:app:preDebugBuild
:app:compileDebugAidl
:app:compileDebugRenderscript FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileDebugRenderscript'.
> llvm-rs-cc is missing

* 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 5s
3 actionable tasks: 3 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: Execution failed for task ':app:compileDebugRenderscript'.
    at org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)
    at org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
    at org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:137)
    at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:109)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:78)
    at org.gradle.internal.invocation.GradleBuildController$1.call(GradleBuildController.java:75)
    at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:152)
    at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:100)
    at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:75)
    at org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:53)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
    at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$1.run(RunAsBuildOperationBuildActionRunner.java:43)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:40)
    at org.gradle.tooling.internal.provider.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:51)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:47)
    at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:39)
    at org.gradle.launcher.exec.BuildTreeScopeBuildActionExecuter.execute(BuildTreeScopeBuildActionExecuter.java:25)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:80)
    at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:53)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:57)
    at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:32)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
    at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:43)
    at org.gradle.tooling.internal.provider.ParallelismConfigurationBuildActionExecuter.execute(ParallelismConfigurationBuildActionExecuter.java:29)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:69)
    at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:30)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:59)
    at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:44)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:45)
    at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:30)
    at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)

    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
    at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:82)
    at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
    at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:122)
    at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
    at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:295)
    at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
Caused by: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugRenderscript'.
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
    at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
    at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
    at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
    at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
    at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
    at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
    at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
    at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
    at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:59)
    at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:128)
    at org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
    at org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
    at org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:46)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
    at org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
    at org.gradle.initialization.DefaultGradleLauncher$ExecuteTasks.run(DefaultGradleLauncher.java:314)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.initialization.DefaultGradleLauncher.runTasks(DefaultGradleLauncher.java:204)
    at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:134)
    ... 62 more
Caused by: java.lang.IllegalStateException: llvm-rs-cc is missing
    at com.android.builder.core.AndroidBuilder.compileAllRenderscriptFiles(AndroidBuilder.java:1161)
    at com.android.build.gradle.tasks.RenderscriptCompile.taskAction(RenderscriptCompile.java:197)
    at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.doExecute(StandardTaskAction.java:46)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
    at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:780)
    at org.gradle.api.internal.AbstractTask$TaskActionWrapper.execute(AbstractTask.java:747)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
    at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
    at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
    ... 104 more
Viewing all 941 articles
Browse latest View live