I am following the steps mentioned here: https://priyankvex.wordpress.com/2015/08/30/how-to-build-tesseract-ocr-library-for-android-studio/
Step 3 tells to copy and paste the tess-two folder to my Project but when I paste, I get an error stating Cannot create class-file and none of my `.java' files get copied.
Where am I going wrong?
I don't know what the problem is but it works, if you copy the folder directly into the project folder instead of copying through the Android Studio.
Maybe for some reason the files are not copied in the Android Studio.
It is because some .class files are included in your copy files.
Some IDE will not include .class file in project and show this tips.
Related
I'm having trouble linking some files to my project. It's an android studio project and I want to link one external file: "Emv_lib.so" (I know that are some questions on how to link .so files, but those are about internal .so files, this is an external one.)
Beside this file, I have an emv_lib.lib and emvIIapi.h (the header file that actually contains the functions that i need to call). I cannot get this to work. I tried with CMakeList, putting the emvIIapi.h file in there, but it comes with the error: "Execution failed for task ':app:configureCMakeDebug'.
C/C++"
I follow some suggestion, to create in src/main the folder jniLibs and put your .so files in there, but it didn't work.
From my undestanding, I have to compile, somehow, either the .so files or the .lib file.
I'm new to android studio, so don't go hard on me. Thank you for your time!
I was working on my app, editing and coding some xml and layouts when suddenly I got an error on my libs folder. It's very weird because I haven't actually modified or changed any base classes or something. Moreover, I just noticed I lost also my R.java file and all of the references are gone.
What possibly can be the problem? I tried to clean+build the project but it didn't work.
Here is a screenshot of my eclipse:
http://i.gyazo.com/959040321d1fd6d00ee0b9a90133aa9c.png
Place the jar in the root folder of your project. Then you can add it to your classpath . (you cannot place a jar and access it using android.R)
You can add the jars to your build path by right clicking on your project->properties and going to Build Path. Then you can add an external jar
Hi i have added IInAppBillingService.aidl file to ../main/aidl/com/android/vending/billing/ directory but no java file generated. What am i missing?
i found the answer. just in case this happens someone else, i am writing the answer. You just need to sync files with sync tool of gradle.
I mostly destroyed my android studio project by accident, and in trying to rebuild it, I've come to a point where the project won't run because it can't find my MainActivity - a java file - because the AndroidManifest.xml throws an error saying 'cannot resolve symbol MainActivity'. edit: I know where this file is located, it's in the src directory, but android studio doesn't seem to know that, so can't start the MainActivity.
Where is the path to these files set? ie, where does a module look for it's own java files? It doesn't seem to be in the Android facet section, that's only the paths to resources and assets, libraries and the manifest file, but that's the sort of thing I'm looking for.
Thanks!
Right-click on your myproject folder > Mark as Directory > Source Root
I had the same problem. The cause for me was that I'd imported a source file from a different project and the package specifier at the top of the .java file was wrong:
package com.example.android.opengl;
Instead it should have referred to my current project.
I am using the code of this answer, where as I have to add ITelephony.aidl to my project source, I did that.
But this aidl file not compiling. Is there any other step which are required?
First create a package in the src folder in your project named com.android.internal.telephony and within that package create a file and copy paste the interface ITelephony and save the file as ITelephony.aidl. When you compile you will get the .java file for the ITelephony in the gen folder.This is what I did and my issue got solved.
Hope this helps
If your aidl file is showing any error in eclipse then you should consider it and post the error here but if it is not showing any error you must clean your project and build it again. After this process you must go in "gen" folder and check either this file is compiled there and any class is exist with the same name of aidl file. If it is found, its mean aidl file is compiling properly.
Thanks and Regards,
Ali
Certin versions of Eclipse move the reference library folders for prjects.Either update eclipse, reinstall eclipse and the adt plug in or move the library within your eclipse folder.