Android Studio isn't working AGAIN - android

Before AS was refusing to install the APK onto the Glass so I uninstalled it, deleted all the files, and reinstalled AS using the installer file downloaded from the website. I downloaded and updated all the APIs I need and now it is coming up with one of two errors:
IDE internal error occurred
Failed to set up Android modules in project 'My Application'
or
Error:Module 'app': platform 'Google Inc.:Glass Development Kit Preview:19' not found.
This is happening on both my desktop and my laptop(which I didn't reinstall AS on). There doesn't seem to be any pattern to these errors and I don't know what to do, each error I fix just uncovers another error.

Maybe AS is not looking in the right place for the SDK.
Change the location of the SDK and try again. If it still doesn't work, try to delete all the SDK files (or move them elsewhere). Warning!!! This will take a long time to re-download the files.
If it still doesn't work then you will have to take a backup of your project (copy the whole project folder), then delete the project from AS. Then make a new project and copy the program and everything back.
That's all I can help with.

Related

Read Time Out Android Studio downloading gradle builder

I'm working with Android Studio on a restricted network. I have a new project with an empty activity but it doesn't build and it's the first project.
When I downloaded Android, I had to add the certs of google and jetbrain, because the network, and that worked, but when it started to build it and download all files of classpath, says the error "Read Time Out" it is because it cannot downloaded builder.jar from google repository, It's weird because all the other files downloaded good but whit this one is the error!
I've tried to reinstall Android Studio and it doesn't work, I've tried to create a new project and it doesn't work too, I don't know what could be... I thought it was the speed connection, but when I put the URL ('https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.1.3/builder-3.1.3.jar') in navigator it starts to download.
Android Studio Version: 3.1.3
This is my build.gradle
This is the error
It was because the speed connection, so I downloaded from the URL and I put them in .gradle folder, (I have to search the exact location) and it works. :D

Unable to Build and Run Unity VR project for Daydream on phone and having hard time debugging the application

Although I’m able to run the apk on phone, but whenever I try to build and run my project directly from Unity on phone, it doesn’t work. This is the error message it shows:
On checking the console, these are the messages it shows:
But I'm pretty sure my path is correct, I checked it multiple times. Also, the APKs are building and working fine. Let me know how can I Build and Run from Unity as I'm not able to debug the applications.
This seems to be a known issue that is solved by downgrading the Android SDK tools to an older version as reported here.
I am just going to re-narrate the steps in the link I shared above for convenience as follows:
Go to Android Studio website.
Scroll down to the end of the page and download the command line tools from the section titled as "Get just the command line tools"
In your computer, go to $AndroidSDKHome$ and rename the tools folder to tools.bak
Extract the contents of zip file that you downloaded to the $AndroidSDKHome$. This basically will replace your SDK tools folder with a downgraded version.

I can not run the app after I update Xamarin.Forms

Ok, here is the thing:
I am using Xamarin.Form to build an app that targets both iOS and Android. I am using Xamarin Studio for Mac
I create the app and the solution creates App, App.Droid, App.iOS project.
In every project there is an indication that show some packages need to be updated.
I run the Droid project in a Samsung S5 API 21, without doing the update, and the app is installed in the device.
I do the update of the packages, to update Xamarin.Form in 20.0.+ version base on the feedback of this question: https://forums.xamarin.com/discussion/57283/unable-to-find-a-version-of-xf-compatible-with so I just update the Xamarin.Form package.
I run again in a Samsung S5 21 but there are some errors : /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid)
What can I do, because I need to update the Xamarin.Forms to the latest version, but I am stuck with this for a long time.
You should:
1-Download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip
2-Go to: /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content
3-Copy the repository downloaded here and unzipped
This worked for me
You should:
Download https://dlssl.google.com/android/repository/android_m2repository_r22.zip
Then go [username]\AppData(hidder folder)\Local\Xamarin\zip
and delete any zip file from there. then rebuild you project and goto step 2 location you should found there something like 96659D653BDE??????????.zip file which visual studio try to download stop build and copy step 1. downloaded file in step 2 location and rename that file with this 96659D653BDE?????????? and remove 96659D653BDE??????????.zip file which is uncompleted.
Then go to visual studio and rebuild your project wait and Viola you got rebuild success. Good Luck
Just remove the corrupted file (android_m2repository_r22.zip) and try again. This happend me like two times by the bad internet connection.

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)

Not able to create new android project in android

eclipse is working fine with importing a project which already exist. But i am facing problem while am creating a new project in the android.
And then am trying to change the path in the properties of the project which i have created then it is showing some kind of error and screen shot of it is
Can any one help me in this.
Assuming your d: drive is an actual hard drive you have the android-sdk in, and not some DVD/CD drive you tried installing the android-sdk from.
You should click on your new android project folder, right-click and click on "close unrelated projects", then the right files will get generated correctly (re-initiate a manual rebuild if you have to).
The problem was that Eclipse was trying to rebuild all the projects you had in your workspace, a number of which already contained errors in them. Not only those other projects were clogging up your error log, but when an error is detected by the packager/builder, the building process gets stopped entirely.
Now just in case this wasn't your only problem, do Help > Check updates
After that, click on the menu Window > AVD Manager and something
and make sure that you have the latest SDKs and AVD updates already installed.
Also be aware that Pulsar is not the recommended version of Eclipse for doing Android development, although this probably wasn't what was causing your problem.

Categories

Resources