Comments (5)
Thank you for your suggestions, I am able to build the app, but getting the following error when the activity opens
05-18 19:21:50.841 20496-20496/study.acodexm E/AndroidRuntime: FATAL EXCEPTION: main Process: study.acodexm, PID: 20496 java.lang.NoSuchMethodError: No static method stream([Ljava/lang/Object;)Ljava/util/stream/Stream; in class Ljava/util/Arrays; or its super classes (declaration of 'java.util.Arrays' appears in /system/framework/core-libart.jar) at study.acodexm.f.t.a(Unknown Source) at study.acodexm.MainActivity.t(Unknown Source) at study.acodexm.MainActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6316) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2421) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2530) at android.app.ActivityThread.access$1100(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5600) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
from panorama360.
@cybenauts Is it possible you're using an older version of Android?
https://stackoverflow.com/questions/39515035/is-it-possible-to-use-the-java-8-stream-api-on-android-api-24
from panorama360.
Thank you for your suggestions, I am able to build the app, but getting the following error when the activity opens
05-18 19:21:50.841 20496-20496/study.acodexm E/AndroidRuntime: FATAL EXCEPTION: main Process: study.acodexm, PID: 20496 java.lang.NoSuchMethodError: No static method stream([Ljava/lang/Object;)Ljava/util/stream/Stream; in class Ljava/util/Arrays; or its super classes (declaration of 'java.util.Arrays' appears in /system/framework/core-libart.jar) at study.acodexm.f.t.a(Unknown Source) at study.acodexm.MainActivity.t(Unknown Source) at study.acodexm.MainActivity.onCreate(Unknown Source) at android.app.Activity.performCreate(Activity.java:6316) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2421) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2530) at android.app.ActivityThread.access$1100(ActivityThread.java:154) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1391) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5600) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Here are some steps I needed to perform in getting the app to compile in Android Studio; not all of them are obvious; documenting them might save others some time.
- Download old Android ndk r15c
- Add to local.properties: ndk.dir=c:\android\sdk\ndk\android-ndk-r15c
- Desktop module build.gradle, line 32 change ".classesDir" to ".classesDirs"
- Download OpenCV 3.3.1 https://github.com/opencv/opencv/archive/3.3.1.zip and extract it into the top directory of the project
- Copy android/src/main/jni/TEMPLATE_Android.mk to Android.mk
- In Android.mk set OPENCVROOT var to the OpenCV SDK 3.3.1 downloaded above (e.g. C:/Projects/Android/Panorama360/OpenCV-android-sdk)
I didn't understand the 5th step
from panorama360.
@salamay Step 5 refers to the source code for this git: https://github.com/acodexm/Panorama360/tree/master/android/src/main/jni
In that directory, currently there's Application.mk and TEMPLATE_Android.mk. I'm suggesting you copy TEMPLATE_Android.mk to the same directory and rename it "Android.mk" because that's the NDK build system seems to be looking for (not "Application.mk").
from panorama360.
@salamay Step 5 refers to the source code for this git: https://github.com/acodexm/Panorama360/tree/master/android/src/main/jni
In that directory, currently there's Application.mk and TEMPLATE_Android.mk. I'm suggesting you copy TEMPLATE_Android.mk to the same directory and rename it "Android.mk" because that's the NDK build system seems to be looking for (not "Application.mk").
Thanks... It has compiled.....but i don't know how to operate the app... It doesn't seam to capture any photo in any mode
from panorama360.
Related Issues (11)
- how to get OpenCV-android-sdk HOT 1
- if i change from lanscape to potrait in MainActivity then green dot for capture photo not able to focus("empty.png") how can i achieve potrait mode ? what changes require in sense of code? HOT 6
- Sphere and rectangle guilde not seen
- hello HOT 10
- App Crashed with this error java.lang.UnsatisfiedLinkError HOT 5
- Hello ,a mistake when build project HOT 1
- How to change camera angle HOT 1
- TEMPLATE_Android.mk is missing a entry HOT 1
- Stiching Problem HOT 2
- ERROR: Cause: executing external native build for ndkBuild
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panorama360.