Quantcast
Viewing all articles
Browse latest Browse all 941

Android error: onRequestPermissionsResult (...) must override a superclass method

My very basic processing sketch runs fine in Java mode. When I switch to android mode and try to start it I get the following error:

---------- 2. ERROR in /tmp/android3694888906208887174sketch/src/processing/test/test/MainActivity.java (at line 58) public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ The method onRequestPermissionsResult(int, String[], int[]) of type MainActivity must override a superclass method ----------

I have tried reinstalling Processing, Java and Android-SDK. I couldn't find a similar issue on google. I have tried various target SDK's, and both emulator and real device. I get the same error each time. Any advice on solving this error is appreciated. Processing: 3.1.1 Android SDK: 25.1.7 Java: 1.8.0_101 All running on Linux Mint 17


Viewing all articles
Browse latest Browse all 941

Trending Articles