FragmentBuilder issue after updating Android studio to 2.0 - android

Today I did update Android Studio to 2.0. And I faced with the problem:
There weren't any problems with 1.5, but now there are. I'm using sockeqwe/fragmentargs library to communicate between fragments using FragmentBuilder.
I have the latest version in gradle:
compile 'com.hannesdorfmann.fragmentargs:annotation:3.0.2'
apt 'com.hannesdorfmann.fragmentargs:processor:3.0.2'
Also, I did update for gradle to 2.0.0.
Any suggestions ?

Go to SDK Manager download and install all on SDK Platforms and SDK Tools this will solve your issue.

I don't know how, but this problem is connected with Instant Run functionality. I disabled it and all are working fine.

Related

Including Android Support in Android Studio (2.3.3)

I had Android Studio 2.3.3 for a while and never had to use it until now. So I installed some Android plugins on it, like JForm designer, WiFi ADB plugins and the rest to get started but it keeps telling me that Android Support (plugin) is not available. Please what can I do about it? Do I need to install any other plugins first, like JUnit? Or if I download the latest version of Android Studio, will it integrate Android support and tools for Android development?
I can send screenshots if they will be of relevance. Thanks in advance.
Please check this answer:
In android studio,cannot load 2 facets-unknown facet type:android and android-gradle
If you couldn't find the Android Support plugin, checked for Android APK Support.

how to cancel an android studio update

since I installed the lasted update of android studio I have been receiving a lot of errors while trying to run and building the project. I wonder if there is a solution to restore android studio to the older version
You could uninstall android studio and download its older version from here. But the better treatment is to keep the latest version and solve errors.

Errors when trying to update NuGet packages

When I try to update the NuGet packages for my solution, I get a set of errors as follows and however methods I tried, did not resolve the problem. Can someone please explain me and help me resolve this problem? Thank you in advance.
The error message explains the problem. The latest version of the support library is 25.3.1 which is Android 7. Your project targets Android 6. So either change your project's target (in Project Options|General|Target framework) to 7 (or 7.1) or use version 23 of the support library.
As #daramasala said in the reply, "latest version of the support library is 25.3.1 which is Android 7". In my project, the Target Android Version was already set to 7, but then I set the Compile using Android version to Android 7 as well, and after that, I could update the NuGet packages without an issue.
You can set the Target Android Version, Compile using Android version as well as the Minimum Android version by going to project Properties from the Application section....

Android gradle sync failed

I recently upgraded from Android studio 2.2.2 or 2.2.3 can't remember - to Android Studio 2.3.1 . Please can someone point me in the right direction as to how to get older projects running on this newer version of android studio ?
i tried changing the gradle build dependency to 2.3.1 as some suggested but that didn't help
thanks
Your gradle may need some updates. When the android studio starts some update are suggested, they get the proper sdks, or version of the android you may be emulating.

Android studio 2.3: Could not initialize class org.jetbrains.kotlin.android.actions.NewKotlinActivityAction

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.

Categories

Resources