OpenCV with Android Studio Problems - android

I know this has been discussed before, but I have had frustrating 3 days and I still can't get it to work. I am following this
After I finish 'Adding OpenCV to your new project', I get the error:
'Gradle 'opencvtest' project refresh failed' with a blank after Error
I tried everything, but even the simplest things don't work anymore. Can anyone help me?

Check out this repository: https://github.com/gowithfloat/android-opencv-template just download and should work.

Related

How to resume a stuck code analysis in Android Studio?

I recently noticed a behaviour, that the default code analysis does not finish anymore in one of my android projects, in particular in kotlin files - unfortunately without an error message. With a stuck analysis I am not able to identify errors in my code anymore and basic stuff like autocompletion does not work, which makes it unable to work.
In the top right corner of the opened file I constantly get Analyzing...
I already tried restarting Android Studio, invalidating its cache, deleting and cloning my project again, rebooting and deleting all kind of gradle and Android Studio cache files but without success.
I finally got it working again with the help of the idea.log file, which can be found via Help > Show Log in Explorer in Android Studio.
The log stated an Exception while analyzing expression at different locations in my files, caused by java.lang.IllegalStateException: #NotNull method org/jetbrains/kotlin/builtins/KotlinBuiltIns.getBuiltInClassByFqName must not return null.
Since it looked like a Kotlin related issue, I upgraded org.jetbrains.kotlin:kotlin-stdlib-jdk7 in my build.gradle from 1.4.10 to 1.5.10 and it worked instantly again. I hope the info helps anyone!
Please remove butterknife plugin in Settings-> Plugin. It is worked for me in java files.

[SOLVED]After „Android Gradle Plugin Update Recommended“ I got this error: Could not resolve com.android.support.constraint:constraint-layout:2.0.4

** I updated to Androidx as #androidkiller in the comments wrote**
I had an example app of a Navigation Drawer from a long time ago, incase I would need it someday. The day was today. After opening it today I got a message telling me I had to update the gradle plugin.
So I updated it and unfortunately I got an error: I got this error: Could not resolve com.android.support.constraint:constraint-layout:2.0.4.
Unfortunately I don't know where to go to fix the error. I did try clean and rebuild the project but it didn't helped. Also I tried some solutions from other post having the same problem but another Gradle version but it didn't help. Like going to Android SDK and the to the Android Tools and click the missing constraint layout versions.
Any thoughts?

Android Room tutorial does not build

UPDATE: Solved! (see fix at the bottom)
I'm trying to go through the Android Room tutorial but get stuck on step3. I keep getting an error when trying to update the gradle file as specified by the tutorial.
https://codelabs.developers.google.com/codelabs/android-room-with-a-view/index.html?index=..%2F..index#1
When trying to build, I get the following error:
Setting roomVersion to "2.1.0-alpha06" or just "2.1.0" generates the same type of error.
Is it only me or is there something wrong with this tutorial?
Anyone with an idea why the androidx.room:room-testing dependancy fails to build?
UPDATE:
I solved the issue by uninstalling Android Studio and re-installing it. I also needed to do a full cleanup and remove all "android studio" and "gradle" related files on my system. Maybe a bit overkill, but this is whats fixed it for me.

Eclipse does not open my workspace

I am getting this error when loading my workspace in eclipse.
An error has occurred.See the log file
D:\XXX\App_name\.metadata\.log.
I can able to open other workspaces and also able to create new onw.I didnt save the copy of my code.Please anyone help me?
Thanks!!!
Thanks for all who commented for my question.I tried your answers but I can resolve that issue by removing this folder from my .plugin folder,
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.
Thanks
Try typing the following in the console:
C:\path\to\eclipse\eclipse -clean
I faced similar problem while running Eclipse neon with Java 9(latest). I used to get error in .metadata.log . Class not found exception.
Checked in eclipse forum and they had a know error with Java 9. Work around was to use java 8. I tried that and it worked for me. Fix should be out anytime soon.
There are other work around but i did not need it since my project required java 8 anyhow.
When you try to add plugins via Eclipse IDE (Help->install new software) the problem occurs.
I suggest you to get the relevant plugin using there official website or in IDE (Help ->Eclipse market place).

error 1 cocos2d x libgame.so

I have been trying for last 2 days to compile a helloworld project for android. It had been giving different errors so far but I found my way through using the different questions asked here by users or at stackoverflow. But now, I have searched everywhere and couldn't find a proper solution anywhere.
When I try to run the build_native.sh in cygwin, it starts compiling but in the libgame.so shared library, it gives an error with exit code 1. Other guys have been getting this type of errors but none of their solution work for me.
I have checked the android.mk and the references are the correct.
Every way I tried has failed. I need serious help :(
Thanks a lot :)
P.S I am using windows8 (64 bit).
I didn't set up the paths in the main.c file. It needed to be pointed to the right folder (classes) Unfortunately no article or tutorial mentioned it, managed it by trial and error.

Categories

Resources