Imported ebookdroid android app failed generate R.java - java

Hello i am trying to run EBookdroid reader on my eclipse. I have downloaded all source code.
I copied all project to workspace and then imported to eclipse but when i import project into eclipse there is no R.java file generated.
I tried to clean project but still with no luck. There are shown some warnings in build.xml, but i don't think that this is important generating R.java file.
Maybe someone had this problem i could help me.
Thanks.

I tried to do the same thing few hours ago. Still cannot run ebookdroid properly but at least the R error portion has been cleared.
In short, check if you have android sdk correspond to target=android-xxxx
For me, after I install Android SDK 4.x and 3.0 and 3.1 via Android SDK Manager, that error dissapear

Related

Trying to import android project to android studio - This version ... cannot open this project

I am trying to open an already existing android project.
At first inside the main folder there are two subfolders one _MACOSX and another one that contains the android project.
I guess, without being sure, that the _MACOSX folder has files that auto created because probably the project was developed on MAC.
I am just trying to import the project from the second folder and I am getting the following error
This version of the Android Support plugin for IntelliJ IDEA (or
Android Studio) cannot open this project, please retry with version
2021.1.1 or newer.
Does anyone know how to fix this issue? I would appreciate any help
Thank you

Imported Module OpenCV's imports are no longer available causing every keyword used to become an error in Android Studio

I'm not exactly sure what caused this or when it occurred but all of imports in MainActivtiy.java were being used successfully without any errors. The app compiled and has been working great. I went back and added some images in my #drawable folder and them added them in my .xml file. Some time after that, every OpenCV class and keyword imported is now an error with "Cannot Resolve Symbol [symbol]." I have tried every suggestion I found with no luck. My app still works, but I can not edit or anything OpenCV keywords.
I was using Android 3.2.0 with OpenCV 3.20, I updated Android Studio to 3.2.1.
Things I have tried, all with no success:
*Everything from this question including
-Delete .idea folder and .iml folder and re-imported project
-Invalidate cache/restart
-Set source and target compatibility to 1.8 for the app and opencv module
-Clean/Rebuild
*Everything from this question that was not repeated
*Update Android Studio
*Remove and re-install opencv
*Close and re-open Android Studio
*Restart computer
What is strange is that everything was fine and then this suddenly happened without much warning. Also, when I click on the OpenCV resources and click on the .java files, they all say "File was loaded in the wrong encoding: UTF-8" and I can't see anything. I followed the steps here when loading OpenCV and whenever I have looked up declarations or anything else in these java files there was no issue. How can I resolve this?
I tried a few more things including:
-Making a new project and coping the code from the old one over, same issues
-Re-installing Android Studio and importing old project, same result.
The only thing that solved my problem was uninstalling Android Studio, then re-installing it and making a new project. I copied the code over and imported the OpenCV module and all the errors went away. I went from version 3.2.0 to 3.2.1 as well

Android projects not running in eclipse

I am facing a so weird issue with my eclipse. Android projects are not running in my eclipse
I'm using
Eclipse version 4.4 Luna ,
android SDK latest API level 23
(even earlier versions is not working ).It was running well till some days ago , and all other java projects running fine like web and desktop etc..
Whenever I am running the android project it shows the error dialog box, though no errors are there in the project(for a new project also), I have tried clean build, cleared cache, updated eclipse adt , and is there anything left I need to try other than formatting PC?
Well ,after some struggle I have found out what is the actual problem. It was my debug.keystore file.
I have got an error in my console saying Debug certificate expired
Well I have found my debug.keysotre file in here %USERPROFILE%/.android and deleted it. Eclipse itself will generate a new one when compiling a new project. You may need to clean and then build to generate the certificate.
Thanks everyone for your support.
Problem solved !!! :)

Why does my eclipse does not produce the R.java file?

I am new to android but when I run the eclipse (which I installed ADT Plugin and android SDK) I found that my eclipse is not generating R.java file with a error message(as shown in figure)
How to rectify that ?
Thanks in advance
You should download the android bundle here http://developer.android.com/sdk/index.html
It is and eclipse version with everything needed for android already installed.
I had the same trouble as you, switched to this one and everything worked at the first try

Android Project with ActionBarSherlock doesn't get built

I implemented the current version of ActionBarSherlock to my Android Project.
Everything works fine and I don't get any errors.
But when I try to debug or export my project I don't get an .apk-file out of my project. Just a .jar-file with the name of my project.
I've read about some problems the SDK had with building projects that contain external libraries but this was at SDK version 14 and so I hope, this bug is fixed...
So there might be another cause for this problem.
Does anybody know a possible solution?
You cannot get *.jar file as the result of building Android project. This seems very strange to me. There must be something wrong with your project settings (if you changed them), or the project you build is of the wrong type (i.e. it is Java Application instead of Android Application).
You didn't mention which IDE do you use, but I assume you use Eclipse.
Make sure you have installed Android SDK and Eclipse ADT correctly (just in case).
Next thing to try is to create a new Android Application project from existing sources (there should be such option during the process of creation).

Categories

Resources