So, I need to open an eclipse project in my computer. The project was build on a mac and my computer runs windows. Its seems like there is some code missing and when I try to run the app on my avd, I get “Unfortunately, has stopped.”
Any idea ?
Thanks
Android (Java) code has nothing to do with Windows or Mac machines - I'm guessing either your JDK versions are different between the two, or (more likely) you have a different version of the Android SDK. Therefore, you have different versions of the AVD, so your app doesn't nicely transfer. I would suggest running in debug mode and showing us the stack trace, so we can give more helpful information.
Related
I've installed Android Studio on Arch linux with the android-studio AUR package, but when I run android-studio I get this:
It's just an empty window with a gray portion. How can I get it to open the wizard properly?
Some Linux distributions doesn’t work well with some programs. Check parameters of your system for opening apps. But you can simply uninstall it and try it again. If the problem was not cleared try downloading another version of android studio. Check apps properties file if it’s not corrupted. If not helped ask Android studio devs. Or try updating you’re Linux.
I had this issue with my wm bspwm, when I changed the session for a desktop environment like kde, it works.
This is how the build window shows java compiler error in other machine having the same android studio, same project.
https://imgur.com/a/2JQjJhX
In other machine
This is how the same project, same error, Android studio is reacting to in my machine having the same android studio version
https://imgur.com/a/BRy6phT
My Machine
https://imgur.com/a/TH6VX4T
My Machine
An error has been generated intentionally to show the actual problem. The real problem is, I am not getting that java compiler line to expand in my machine so that I can get an idea where the error is actually.
I have tried to invalidate cache/restart, system restart, imported settings of another android studio that is showing that java compiler line.
Thank you in advance.
there can be some changes in settings check setting in an android-studio
or
if you don't want to take this long process you can try exporting of your settings(for a backup) and import settings from other pc
I am sure it will solve your problems
or check java versions on both pcs maybe because of different java versions
this problem can be possible
different java versions shows different errors
I installed Android Studio the other day to develop an app and even though it's not the first time I've used it, it's the first time I've installed it on this PC and I'm fairly new to all of it.
Problem: After installing Android Studio, I can't even make a "Hello_World" app, even the templates AS offers have a compiling error:
Where it doesn't recognize symbols like "Override". The Alt+Enter solution that offers is to Setup JDK which does nothing for all options or create annotation 'Override' which doesn't really seem like a good option.
These are both build.gradle files:
Things I've tried to fix it:
Reinstall Android Studio Multiple Times
Download JDK manually and change references.
Check Enviromental Values on system (Add JAVA_HOME and heck Path to be correct). Pretty sure both java and JDK work since in cmd I can run java and javac.
Obviously Build->Clean and File->Invalidate Cache + Restart
android.enableAapt2=false on gradle.properties
Trying to delete all java from my PC and reinstall bare minimum THEN install everything separatedly.
Install all SDK plataforms until Android KitKat.
It's worth noticing that in the past I had a lot of problems getting java to run in only one place (mainly because I install software in an HDD and have OS on another SDD).
Also, while installing AS for the first time I got into a BSOD because of VT-x having shitty interaction with virtualization of anti-virus (that took me a while to figure out) so it stopped halfway. However I've reinstalled a bunch of times so I don't know how that could matter.
The problem is very similar to this one
I'm practically lost here. I've been trying to fix this for three days and I've looked into dozens of Stack-Overflow posts with similar problems, haven't found a solution.
Any idea will be appreciated.
Thanks.
I repeated your error:
I made it by deleting Android SDK(not java SDK) in Android Studio:
File-Settings-AndroidSDK
Try to pick at least one and install
It seems that your problem is related to Android SDK
Okay guys, I've finally figured it out, thanks to artmmslv.
Android Studio's installer detected automatically - two versions of Android SDK which were corrupted (probably caused by BSOD messing up the installation).
I had to make sure to delete everything. Java SDK, Android SDK. Java JRE. Every data from Appdata or documents from Android Studio. Once the computer is clean from any traces of already installed plugins, modules, and whatnot, it should be able to set up perfectly fine paths.
Also, make sure to set up manually and correctly the Environmental Values of java (path edit and JAVA_HOME).
Thanks for the help.
I got a solution that was a problem for me.
(in Build.Gradle file) - It's the
Compile SDK version 32
//which was not the latest one,
I changed it from older (31) in old projects to (32)
And clicked: sync now,
it worked!!
Hope it helps:) Happy coding
I recently put Android on my Windows laptop. I want to run Selenium-Webdriver for automation and development. I need Java for Selenium to run this on my Android machine.
This is my first time ever (obviously) putting Android on a laptop and was wondering how to put JDK on it.
I have tried researching this and have had no luck.
Note: I have Termux - so I was able to install everything from NodeJS, Protractor, Selenium, etc.
I tried installing GNURoot Debian as suggested and the application is launching with an error. I have researched the issue and no luck.
Also, the APK file that was in the Stack Overflow answer was invalid.
I recently got a new machine and Windows 10, which I've never used. I'm going through the process of re-installing all of my app development software, which includes Git, Java 7, and Android Studio.
I was under the impression that everything installed fine, but I can't actually launch the IDE itself. The launcher is fine and I can go through the steps of creating a project, but whenever I click finish, the screen closes and nothing happens.
I wish I could give more details but that's really all that happens.
Any advice on how to troubleshoot this issue?
Some of my theories:
1) Android Studio doesn't seem to like spaces in path names and gives me warnings when creating projects and installing tools. That seems like a silly issue but it's not impossible I guess. It doesn't like "Program Files" or my username which is my full name, but Windows 10 by default names accounts "FirstName Lastname" and I can't seem to change the username to a string without a space.
2) Android Studio is not detecting Java (7). Perhaps it got the wrong location for the Java SDK since I installed them at the same time? Other people seem to have encountered a similar issue, but I would think that I at least get an error.
3) It's just some dumb tiny bug and I have to reinstall Android Studio.
Any help is appreciated, I want to get to work.
Java 7 is outdated. Download the java 8 JDK. http://www.oracle.com/technetwork/pt/java/javase/downloads/jdk8-downloads-2133151.html
Set your java path variables accordingly.Environment variables for java installation
Make sure you downloaded and installed the version of android studio
that included the SDK, if not download it separately. https://developer.android.com/studio/index.html#downloads
Set your path variables accordingly. Android Studio - How to Change Android SDK Path