Errors after updating to Anroid 3.6.1 - java

Recently I updated my Android Studio into 3.6.1 without any problems occurring, but as soon as the Gradle finished syncing, an error message shows in my Build and Event Log.
(Inside the "Build" message)
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException:
Could not resolve all artifacts for configuration ':classpath'.
org.gradle.internal.resolve.ModuleVersionResolveException: Could not
resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61.
org.gradle.internal.resolve.ModuleVersionResolveException: No cached
version of org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61 available
for offline mode.
(inside the "Event log")
Gradle sync failed: No cached version of org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.61 available for offline mode.
I noticed that there's a "kotlin" (from the Event log) involved in the message, but I haven't used a single project with Kotlin yet.
I haven't seen any solutions that helped me so far, only saw old problems that were slightly the same as mine that's why I posted this question instead. Its the first time this error occurred to me, and also my first time asking a question.
Right now, I'm not able to run any of my projects in Android Studio because of this error. Please help!
-Thank you for answering in advance.

Check and disable the offline gradle and try again, Android Studio is muture enough to solve most of the problems now days. Try again after enabling the online gradle and click on sync again(eleghant icon with down arrow) to left of AVD icon in toolbar.

Try reinstalling android sdk maybe the problem is solved.

Related

How to build Android app in release mode? GoogleFit: RESULT_CANCELED

Can anyone tell me how to build my app in release mode? I'm having issues getting to the permissions screen on my android (java) application, I keep getting GoogleFit: RESULT_CANCELED error and then activity closes.
Another user suggested building in release mode, my SDK is generated for release and I have updated my gradle files but nothing is working.
I have asked for help a few times since yesterday with no luck so if anyone can help that would be appreciated!
Link to my other question with problem in detail
I'm assuming you are using Android studio. To build the app in release mode. You will need to find a window called Build Variants which should be at the lower left screen of you workspace. And you will see the modules you created for your APP. And just change Build Variants from debug to release.
Here is the official document link for your reference Build and Run your App.
If you sre using Android Studio then you can go to build > Build Signed Bundle/APK....proceed and at the end Mark "release".
For more details you can search "android studio Generation Signet APK".
But I believe your problems lie deeper than that, I dont think it has anything to do with how you build your APK.

Execution failed for task ':app:javaCompileDebug'

I recently went back to an app in android studio that worked fine on Android Studio 2.3.3 but this morning when I was prompted to update to Studio 3.0 my module wont make. I have tried cleaning and rebuilding but when I try run it on my device the build fails and gives me this error:
Error:Execution failed for task ':app:javaPreCompileDebug'.
Annotation processors must be explicitly declared now. The following
dependencies on the compile classpath are found to contain annotation
processor. Please add them to the annotationProcessor configuration.
- androidannotations-4.0.0.jar (org.androidannotations:androidannotations:4.0.0)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.
See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.
I have no clue about android annotations that is why I am asking here on SO.
Thanks!
After doing some research I was able to find this GitHub issue. This picture solved my problem!

Error loading project after Android Studio 2.3 updates

Today I updated my Android studio to new version 2.3 and when I try to load my project popup with following error. Please help me out as I am working on some important project.
thank you
I had similar problem but with different plugin (BlackBerry OS AVD caused this problem). I searched for plugins name (last line in your error message), it showed BB dev site, I immediately knew what was going on.
Find which plugin caused error, then go to Configrue (bottom right corner) -> Plugins -> delete your plugin, restart android studio.
Worked for me.
I had the same problem, some plugins were creating problem for me. so delete the plugins and restart the android studio.

Crashlytics error during build - could not read the build_id as a value string

I'm getting the following crashlytics error every time I build any project:
java.io.IOException: Crashlytics could not read the
com.crashlytics.android.build_id as a value string
Has anyone come across this error? What does it mean, where does it come from and how do you resolve it? It happens during a step called crashlyticsStoreDeobsRelease
Steps I've tried so far to resolve this:
reinstalled the crashlytics plugin
reinstalled android studio
clean the project, invalidate caches and restart
forced autoregeneration of the crashlytics-build.properties
creating a 'com_crashlytics_export_strings.xml' file in the res/values folder with the build_id (it just vanishes when I build the project)
added the apiKey to crashlytics.properties
built project with android studio 1.0.1 instead of 1.1 beta 4
using version 2.0.1 of crashlytics instead of version 2.2.1
removed all aspects of crashlytics and then performed new "onboarding" of the plugin to the app
tried disabling all plugins in android studio except for fabric and the base plugins, then restarting and doing a build
EDIT: this definately has something to do with the latest version of Android Studio (V1.1 beta 4) - as it occurs with all projects I'm trying to run under this version
EDIT #2: apparently this doesn't have to do with V1.1 beta 4.. I tried to install the stable build v1.0.1 and it still occurs there :/
Edit #3: I noticed that the files
- crashlytics-build.properties
- crashlytics.properties
- com_crashlytics_export_strings.xml
are only recreated on android-studio startup. Furthermore, the file com_crashlytics_export_strings.xml is deleted during apk build. Maybe this has something to do with the issue or is it normal behavior?
Link to the solution:
http://www.reddit.com/r/androiddev/comments/2v0ri1/crashlytics_or_fabric_or_whatever_isnt_working/
Change your classpath to this and it works:
dependencies {
classpath 'io.fabric.tools:gradle:1.14.4'
}
Apparently the last release that Fabric made (3 days ago) has caused this issue. Their latest release version at this time is 1.15.1
EDIT: Fabric have released version 1.15.2 which doesn't appear to have this problem.

Eclipse does not work after update through Android SDK Manager

I have just updated my eclipse through Android SDK Manager, my eclipse pop out and error about the Android SDK.
This Android SDK requires Android Developer Toolkit version 23.0.0 or above.
Current version is 22.6.2.v201403212031-1085508
When I pressed the button "Check for Updates", the result from eclipse is "No Updates were found."
I am sure that my Android SDK should be 23.0.0 above.
All my project listed in the left corner of above picture contains errors.
I have studied this thread and I found that the "Java build path" was "Unable to get system liberary for the project"
The project was not built since its build path is incomplete
Whenever I tried to add the JRE System Library, it failed beacause of "Could not write file: C:\Users\Admin\workspace\ICEAPP(20140819_uc).classpath."
Can anyone give me so help?
Update the ADT-Plugin in eclipse (Help > Check for updates)
You have to remove the whole installation and reinstall everything again. This update seems to fail always. But reinstall works for all of this issues. With the new version 23. It seems there is a big compatibillity problem unsolved yet.
Check for updated fails but eclipse say it need one update. Also SDK Manager seems to be up to date.
Anyway, even if you get ot working, there still are problems for example with implementation of google play service.
Had a lot of issues by myself and others to, but reinstall solved it

Categories