After having this issue on Mac OSX, I reinstalled everything for Android Studio. (Studio itself, SDK's), ... Gradle Sync just does not work anymore. Anybody experiences this also? JAVA SDK Installed is 1.8.0_161.
"Uninitialized object exists on backward branch 70" on gradl sync (see screenshot)
error
android studio version
Bintray was experiencing an outage this morning. This is where a lot of Gradle's Android dependencies are hosted, so it was most likely affecting your Gradle Sync Process. Keep an eye on the status page here, and try again if it turns green. http://status.bintray.com/
This is a bug of JDK old versions. Go to the project structure and change your project to latest JDK version like 1.80_72 or later
After upgrading my Android Studio (on Ubuntu 14.04) to version 3.1.4 I also experienced a build problem:
Gradle sync failed: Uninitialized object exists on backward branch 70
Exception details: error in bytecode
Found out it was due to an old JDK version I have installed locally.
Instead of updating my local JDK I changed the project settings to use the embedded JDK, which, by the way, Android Studio says is the recommended option, and that solved the problem.
Related
I'm facing problem with the latest version of Android Studio which is 3.6.1. I have a project which was develop using Android Studio 2.1.2 and now I decide to switch to use the latest version. After I update my project file to latest version follow the instruction of the Android Studio, I cannot sync my gradle. Here is the error I'm facing
Try 'import' rather than 'open' old projects when using any latest version of Android Studio. If it still fails, perhaps create a new project and port the existing codes over. The versions are too far apart from 2.1.2 to now 3.6.1.
Change the jdk Version to 9.0.4
This worked for me.
in windows 10 in Android Studio 3.2.1
the application is worked correctly after first time of installing but after installing Google Sceneform Tools (Beta) from :
File > Settings > Plugins > Browse Repositories
after installing the plugin android studio should restart and then it's can't launch anymore
anyone can help please ?
One cannot just use any version of Google Sceneform Tools (Beta) with any version of Android Studio. As this one comment suggests, even if it's about other versions (also see the other comments there):
A temporary solution: install Android Studio 3.5.1 + Sceneform 1.5, make sfb file, place in project in Android Studio 3.6.
So in your case, you might probably have to update to Android Studio version 3.5.3 or any other version, which works with the current version 1.16.0, as the Android Studio which you are using appears rather outdated.
If you just want to be able to start Android Studio again, then manually delete the plugin directory from %USERPROFILE%/.AndroidStudio3.2/config/plugins, in order to perform a manual uninstall, as it might be required in order to update Android Studio.
Besides "it's not working" is not an error description. You'd have to start Android Studio from the command line, in order to get some meaningful error message, by which you then could search in the issues on GitHub (if the reason why it doesn't start up anymore might have another cause).
I have had issue #377 filed for this plugin since Oct 16, 2018, and unfortunately it is still open now.
I will update this answer if it is solved or a solution is found.
Update 1 :
the github [repository]2 for this plugin has been archived and it seems no longer supported after reading the documentation here
I have Android-studio 2.3.2 (which is android-studio-ide-162.3934792-linux.zip) installed, which is the latest stable version. I am using fedora 24. I am using meteor 1.4.4.2
When I build an APK using "meteor build" I get this error:
While building Cordova app for
platform Android: Could not find gradle wrapper within Android SDK.
Might need to update your Android SDK. Looked here: ~/Android/Sdk/tools/templates/gradle/wrapper
It seems to me the path to gradle wrapper has changed on the latest version of Android-studio. I don't have a previous version of Android-studio to prove this though. I've searched for previous versions of Android-studio and could not find them. I have searched for a solution but there is no one out there who seems to be solving this issue.
You will find a solution in this other thread and some explanation in this answer
The explanation is that the linux version of cordova does not search for gradle in the Android studio install folders like for Windows (and even for windows it does not find it if android studion is not installed in c:\program files\android\android studio) or Mac .
On Linux (and maybe for Mac&Windows in future versions of Cordova), you have to install a version of gradle and add it to your path (way to install gradle depends on the version of Linux you're using)
The behaviour was different in the past because android sdk was not inside Android studio like it is now. You could find gradle in the ANDROID_HOME/tools folder.
With recent upgrades, Android SDK structure has changed and it is now part of android studio.
Installing android-sdk_r24.4.1-linux.tgz which installs version 25 or higher version by default solved the problem for me. Because I could not find a way to uninstall Android Studio I had to uninstall and re-install my linux.
See https://gist.github.com/rolandboon/0a5abe1d9c6c515c59ec for downloading and installing the sdk
I have just updated Android studio 2.2.2 to 2.3 from the canary channel. After downloading completed and applying path file, the android studio is restarting.
But after restarting android studio I am getting below error with dialog:
Cannot load project:
com.intellij.ide.plugins.PluginManager$StartupAbortedException:
com.intellij.diagnostic.PluginException: Could not initialize class
org.jetbrains.kotlin.android.actions.NewKotlinActivityAction [Plugin:
org.jetbrains.kotlin]
See below screenshot for to get more idea:
After closing dialog by ok and restarting android studio, also I can't able to open my project or creating new project.
Does anyone is facing same issue after updating android studio?
Disable the Kotlin plugin and restart Android Studio. I had the same error even after I updated the plugin. So disabling seems to be the solution for now -- unless you're using Kotlin, I guess.
The Kotlin team confirmed a fix is in the works via twitter: https://twitter.com/kotlin/status/797111726516879360
The issue is fixed in Kotlin plugin version 1.0.5-2.
Issue is fixed in new update of Kotlin, you can update your plugin from
Configuration>Plugin>Install JetBrains Plugin>Select "Kotlin" from List and hit "Update" from right menu
Updating the 'ext.kotlin_version' on root build.gradle to the latest fixed the issue for me. Use this link to find the latest kotlin version.
This happened to me just today after updating my Kotlin's plug-in verison from 1.1.51 to 1.1.60. I had to uninstall this version from Settings > Pluings in Android Studio and install the previous one, which can be downloaded from JetBrains plug-ins repository.
If you're using Android Studio 3.0, you don't need to install the previous version of the plug-in again since version 1.1.51 is built-in in Android Studio.
I have updated Android Studio from version .2.0 to .3.1 and when I start Studio it displayed the following error message:
"Problems importing/refreshing Gradle project 'Second':Unresolved
dependencies: com.android.support:appcompat-v7:+ Search"
As per my answer on AndroidStudio - Gradle Refresh Failed
You probably need to update the Bundled Android SDK that comes with Studio:
Tools-> Android-> SDK Manager
I did a blog post about Android Studio Gotchas which also mentions this.
For some reason they totally ignore any Android SDK you may have manually installed and use their own. So selecting the SDK through the IDE makes sure you use the correct one. You need to ensure you have the latest compatibility library.
You may also need to restart the IDE after updating. I did in any case, can't remember if it was essential.