Android Studio 3.1.2 : Failed to resolve: runtime
yes , If you are getting error like error run time you can change the position of google() in dependencies in build. gradle.. Like below: repositories { google() jcenter() }
yes , If you are getting error like error run time you can change the position of google() in dependencies in build. gradle.. Like below: repositories { google() jcenter() }
Following the update to Android Studio 3.2, this line works for me. I have both Java and Kotlin code (compiler) running in my project. Add the following to your gradle.properties: android.databinding.enableV2=false Reason: Data Binding V2 Data Binding V2 is now enabled by default and is compatible with V1. This means that, if you have library … Read more
After some poking around, I found this button on the left side of the Build window: Clicking this button toggles the view between the new “Build” view and a text output version which resembles the old Messages view – although it isn’t exactly the same. I hope this helps! UPDATE: In Android Studio 3.3 the … Read more
Android Studio is looking for build tools 26.0.2, but build tools 27.0.3 is already released for Android Oreo 8.1 I am not totally sure why, but Android Studio doesn’t set the build tools in the gradle “app” file anymore. So here is how I fixed it. You get two options. Method 1 – Install the … Read more
As @evi pointed out there is a bug in advanced profiling. For now disabling it (Edit configuration settings -> Profiling -> Enable advanced profiling) prevents EditText from crashing Update: Fix released in Android Studio 3.1.1 Advanced profiling available once again!
You should add it to .gitignore. Don’t include it in your git add. In the left-side Project window, (a) change the Android view to the Android project view, with the pull-down menu. (b) You can see build_file_checksums.ser in folder .idea/caches. (c) Open .gitignore of the project root directory. (Don’t confuse it with .gitignore of the … Read more
My solution is simple, don’t look at the error notification in Build – Run tasks (which should be Execution failed for task ‘:app:compileDebugJavaWithJavac’) Just fix all errors in the Java Compiler section below it.
Close the project and import it again. Worked for me today.
Solution Close Android Studio Go to C:\Users\UserName\.android and rename the build-cache folder to build-cache.bak Go to C:\Users\UserName\.AndroidStudio3.2\system and rename these folders caches to caches.bak compile-server to compile-server.bak compiler to compiler.bak conversion to conversion.bak external_build_system to external_build_system.bak frameworks to frameworks.bak gradle to gradle.bak resource_folder_cache to resource_folder_cache.bak Open the Android Studio and open your project again.
Exit Studio. Delete .idea/ (seems to me that’s most important), build/, app/build directories. Start Studio Set Settings -> Build -> Gradle settings back (last stable Gradle local distribution in my case). Clean&rebuild project. Helps me.