android studio project opening on different machine gives error - android

I am having android studio 1.2.1.1 on both machine
i was working with the project on old machine but now for some reason i have to use different machine on which i have installed the same version android studio
so whenever i try to open the project on new machine it gives me error i have attached screenshot of the error
event if i create new project to check if my old project is having any issues new peoject also gives same erros.
i found something wrong with the file structure as u can also see in the second image screenshot file where you can see that there is only one build.gradle file is present generally there are two files.one file is not showing in gradle scripts.

Related

Android Studio Error:Data error cyclic redundancy check

I was working on a Project and this required me to reinstall the latest version of Android Studio. After the Installation when I opened the Project I,m getting this error.
I have tried the single answer available, but it won't work. I am using te latest version of Android Studio (3.1.1).
"ERROR: Data error (cyclic redundancy check)"
I have the same problem and the problem was that there was a corrupted file its name appear to me in android studio, that file android studio can't read as there was a bad sector in its hard location
Solution for me was to copy file content from android studio and create new one with the same in its location , hope it help others,

java.lang.NoClassDefFoundError When Creating New Android Project

I've tried installing (and re-installing) Android Studio several times now, and each time, Studio isn't able to create a new Android project.
When I attempt to do it from the initial Android Studio window (ie. with the basic 'Create', 'Open', 'Import' etc options), I'm asked all of the questions in the wizard, but then I get a brief progress dialog, followed by nothing at all.
If I open the very incomplete project the process creates by choosing 'Open' from the list, I can then try choosing to create a new Android project from the menu.
This has exactly the same issue, however I DO get an error message in the output console this time...
java.lang.NoClassDefFoundError:
com/sun/xml/internal/bind/v2/model/annotation/AnnotationReader (wrong name:
com/sun/xml/internal/bind/v0/model/qnnotation/AnnotationReader)
NOTE: When I installed Android Studio, it installed an incompatible JDK (1.8, not 1.7). I have had to go into my default project settings to change the JDK it uses back to 1.8.
Does anyone know how I can avoid this? Is there a place I should be downloading the JXB classes? Am I missing something in my JAVA paths?
This appears to have been caused by a corrupt JRE installation.
Reinstalling JRE 8 seems to have fixed the issue and I can now create Android projects successfully in Android Studio.

Android : R class stopped getting generated

I am a newbie to android programming .I was doing tutorial from Commsware tutorial , to be precise T3 tutorial during which I cleaned the project.After that R class file has stopped generating.
I deleted that project,looks like the same error is getting propagated to other new projects I am creating.
This error is coming for the newly created project also.
I tried all the solutions in stackoverflow like : cleaning project,selecting android version in build path , deleting my workspace,freshly install eclipse etc..
The other intimidating thing is my res folder does not show any errors and my xml file does not contain any capital letters.
It must be some silly error which is causing this?
Perhaps you should take a look at this if you've recently updated SDK tools.
After updating to SDK Tools to rev. 22 for the first time, you may need to relaunch Android SDK Manager again and install a new item: Android SDK Build-tools.
After installing this, clean your projects and rebuild.
this happened to me after updating the android dev kit and esclipse.
couple of things you should try.
if you updated ADT, you must restart ADB server. you probably haven't read the message that says after update. or maybe restart whole pc.
if you're using external jar files, rename the libs folder to lib and revert it back to libs (from eclipse, f2)
There seems to be a problem with the target build settings within your projects.
The R file will not be autogenerated if there is the slightest error in your project. E.g if you use elements in a layout xml file that are available only in Android 2.2 but your project targets android 2.0. Sometimes the offending elements don't show up as errors because, syntax-wise, they are correct.
I advice you look at your target builds in android manifest.
Or target a higher android build (Get the latest one via SDK manager)

Android First App unable to create

"problem in creating first android application without any error"
I am new to android application... I have already installed eclipse Juno and used it to run simple java programs. Then I downloaded Android SDK bundled with ADT, which has eclipse attached with it. Therefore, when I opened newly installed Eclipse ...
I found my old files made in existing IDE also accessed via new eclipse IDE.... and new-- > android app option was too showing
To resolve 2 IDE issue, I deleted old existing IDE in My laptop and using Bundled eclipse, created a new android application ..
But on clicking finish button when i was naming the file: the first step that is now not creating any package or application ..
and not showing any error message..
"I have searched across Google found application creation problems are with error messages...."
but in my case No error message is shown .. still unable to create ...
Not getting what is the problem here..
please help me to find the problem thanks...
Create a new workspace (only for Android apps) from the File menu.
After Eclipse restarts in the newly created workspace, create your File->New->Android app project.
If the above two steps do not work for you, please post if you have Android SDK installed and Eclipse->Preferences->Android is pointing at the right location.

Creating a new Android Application Project

I am new to Android Development. I tried to create a new Android Application Project using Eclipse but when I click 'Finish' the windows remains open. When I close it, the folder hierarchy is as follows:
I don't think that this is correct since no AndroidManifest is present
Also, these are the errors that I get in the error log:
Sometimes deleting your Debug Certificate would work. This would be located inside your profile folder (In Windows, %USERPROFILE%/.android would be the correct location). Now clean build your android project. It should work.

Categories

Resources