On Android Studio's suggestion, I am trying to install the Kotlin 1.3.70-realease-Studio3.6-1 , after Downloading it says "plugin update was not installed. See log..." and the log is lengthy and i cant understand it.
Anyone knows the fix?
I had the same error message. There is also nothing in the logs. All you need to do is to restart Android Studio, Release 1.3.70 is very likely already installed, that's why you are getting the error.
After restarting, open the Tools menu, Kotlin, Configure Kotlin Plugin Updates and you will see that Release 1.3.70 is installed and that there are no updates available.
Related
When trying to run the app on the device, I'm facing the following issue:
I the Event Log, there is the same message:
Where can I find more info about the error?
Might work if you Clean the project or rebuild the project and if you launching in emulator uninstall from the emulator or from mobile.
UPDATE:
i think there will be no more information about the error...
It's our common mistakes.
As per my knowledge about this issue there can be a few reasons for that:
First is that your app is already installed with the same package
name but with different certificate, To resolve this check if your
phone has that app already installed then uninstall it and try to
install new one.
The second reason can be that you are trying to install the
application that has minimum SDK version higher than the Android
version of device. To solve this make sure that the minimum SDK
version defined in your project's "build.gradle" is lower than the
Android version of your device.
Turning off the Instant run removed error for Android Studio 2.3.
sometimes project location contained the special character.
Example: E:\Android_Projects\T&PUIET,KUK\app\build\outputs\apk\app-debug.apk
close android studio > rename folder containing the special character(here T&PUIET,KUK ) > restart android studio.
Hope it will help!
I'm using Fabric with both Android Studio and Eclipse, and the plugin was really an easy tool, From a couple of weeks the Plugin for Android Studio is not working any more, I have tried to install/uninstall several times with no success, this mainly happened after the plugin is moved into Repositories.
Every time on the start up of Android Studio there is a floating message says
"Fabric for Android Studio threw an uncaught NullPointerException.
Disable Plugin"
, And in Event Log a message appears every 5 seconds
"NullPointerException: update failed for AnAction with
ID=Actions.Crashlytics.CrashlyticsAction"
I already read this Question with no success
Exception in plugin Fabric for Android Studio
I have posted a question too here in there Forums
https://twittercommunity.com/t/fabric-for-android-studio-threw-an-unchaught-nullpointerexcpetion/58893
I hope i can find a way to install it again without problems
Thanks.
I have contacted Fabric support and that was their reply
Hmm seems like something odd's going on here! This error is usually
due to an out of date plugin or a caching issue with Android studio.
I'd like to have you try deleting the cache, removing the plugin and
reinstalling it.
To clear the cache, delete com.crashlytics here:
~/Library/Caches/com.crashlytics
Can you then uninstall and reinstall the plugin and try it again?
After trying this, the plugin was installed successfully.
When I attempt to Sign in in Google Plugin in Android Studio for login services it is throwing the error:
IllegalArgumentException: Argument for #NotNull parameter 'userEmail' of com/google/gct/login/CredentialedUserRoster.setActiveUser must not be null
I have tried the following steps:
Restarting Android Studio
Restarting my Mac machine.
Disabling and enabling plugin for Google Login
Clearing cache and preferences along with logs of Android Studio in ~/Library/
I have been trying to fix this from last two days now. None of the above worked. I am using Android Studio v1.3.2 latest build on 19 August.
I think this issue is not related to code. I had the same problem and that log is shown by Google Login plugin.
My recommendation is to uninstall and install the last version.
Other options here.
I have tried literally everything to try and rectify this error when trying to deploy an app to an actual android device for debugging but have been unable to solve the matter. Everytime I try to launch I get a failed [INSTALL_FAILED_DEXOPT] error and when checking the logcat it is always because there is no classes.dex in my debug apk.
If I run gradlew.bat clean assembleDebug, there is no difference in the apk size so I'm assuming there is a build error in android studio. I am using android studio beta 0.86 and have tried it on 0.89 with the same result. I have tried build tools for 19.1 to 21 with no result. I have also tried different devices and created a new project (that has never been installed on my devices) and android studio seems to think it needs to be uninstalled first when attempting to deploy.
I have tried switching my device to ART, uninstalling and reinstalling android studio, redownloading the sdk and restarting my computer. NOTHING and I mean NOTHING has worked. I think the problem started after I downloaded the lollipop apis but am not sure. I have tried uninstalling all apps with my package signature on my device but NOTHING works! Not even Project -> Clean Project -> Rebuild
This is extremely frustrating as I cannot debug my apps anymore :/ has anyone had any experience with this error or ways to rectify it?
So turns out that the issue was mismatching sdks between Android Studio and the Project. The project was using an old sdk and once I made them the same, I cleaned and rebuilt the project and everything was good to go.
UPDATE:
I ran into the problem again after I tried to update my SDK and its tools. Turns out that when you try to do this, the SDK locks the tools folder and then you get an error saying some file couldn't be overridden. When this happened to me, all the build tools were deleted so there were errors in the .dex file created when debuggin my app.
We are using android 2.2 (really old i know) and couldn't find a fix for this error. Eventually we found this bug https://android-review.googlesource.com/#/c/30900/. The only solution for us was to remove some libraries...
I kept having the same problem - manually building worked fine, but Android Studio would not build a proper APK.
The problem was that I started the project on Android Studio and Android Gradle plugin version 2.0-beta2. After updating the Gradle plugin to 2.0-beta6 through a simple build.gradle change, the builds stopped working.
Turns out that, although I installed a beta version of Android Studio, the update checker only checked the stable channel. After setting the updater to check the canary channel as well, I was able to upgrade Android Studio to version 2.0-beta6 and builds continued to work normally.
You can change the update preference in Android Studio settings under Appearance and Behavior -> System Settings -> Updates.
I encountered this error when storage of the device is full. Try to open some space.
Try run these commands
adb reconnect
adb reconnect device
I upgraded to the latest android studio and as ever it breaks what was working fine before.
If I plug in my android device I can see debug in the debug monitor, it gets detected and i can select it as a device to deploy to, then I get
Waiting for device.
Target device: xxxxxxxxxxxx
and nothing else happens.. VERY frustrating. Anyone any ideas on how to resolve?
Here is the resolution:
The problem is the way i installed the newer version of Android Studio. Do not install it over your previous installation directory. Create a new directory and move over your SDK into it. This is how I resolved it.
The only error I was eventually able to get from Android Studio was if i tried to run a test I'd see
NoSuchMethodError: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;: com.android.builder.model.AndroidArtifact.getOutputs()Ljava/util/Collection;
there has been some other posts referring to this issue. Just make sure you do a clean install and don't crap over your older version.
This issue on the AOSP bug tracker tells you what is going on. A quick fix is getting rid of builder-model-0.11.0.jar from plugins/android/lib in your Android Studio folder. A patch has already been submitted and this probably won't happen again with the next update.