build.gradle

Verbose build logs from Android Studio

限于喜欢 提交于 2020-07-08 12:57:50
问题 How do I get a verbose log (including the command-line arguments to compiler and linker) when building with Android Studio? I have just transitioned from Ant / Android.mk builds to Android-Studio builds. With the old system, I was able to see how the compiler was evoked by doing: $ ndk-build V=1 What would be the equivalent setting in Android Studio to accomplish this? I have a suspicion that my project is building against the wrong GLES version (gles2 instead of gles3) and want to make sure

TextClock render problem in layout preview

岁酱吖の 提交于 2020-07-03 02:36:32
问题 When i created TextClock widget in layout Android Studio layout preview cahsed and didn't show the changes. But on debug devise widget work perfectly. If I commented it layout preview work successfuly. Another PC Android Studio work successfuly and show TextClock. Error Layout preview java.lang.NullPointerException at android.content.ContentResolver.registerContentObserver(ContentResolver.java:2263) at android.widget.TextClock.registerObserver(TextClock.java:626) at android.widget.TextClock

Keep facing Process unexpectedly exit in Android Studio 3.4.1

穿精又带淫゛_ 提交于 2020-07-03 01:37:16
问题 After an update of Java facing an issue of Process unexpectedly exit while creating the build for Android. I was using Android Studio 3.3.0 and updated it also into 3.4.1 also to see any update but there is no change. Currently I'm using classpath 'com.android.tools.build:gradle:3.4.1' could not run my app. When I try to run the error shows : Process unexpectedly exit. I have tried with downgrading the version of gradle from 3.4.1 to 3.1.4 but it also din't work. And it gives a new error

Howto handle clash of tasks for two gradle plugins?

放肆的年华 提交于 2020-06-29 05:40:12
问题 I use gradle with the two plugins com.jfrog.artifactory and io.swagger.core.v3.swagger-gradle-plugin . Now I want to configure as described here https://github.com/swagger-api/swagger-core/tree/master/modules/swagger-gradle-plugin the generation of code. But it seems that the resolve task has already been defined from artifactory. How do I adress the method of swagger-plugin directly? This is in my build.gradle: resolve { outputFileName = 'bananas' outputFileName = 'PetStoreAPI' outputFormat

Android resource linking failed AAPT: unknown option '--proguard-minimal-keep-rules'

馋奶兔 提交于 2020-06-29 04:08:12
问题 My Android Studio was working fine, everything was good but after updating Android Studio to the latest version and updating gradle I got the following error Could you please provide the solution, thank you Task :app:processDebugResources FAILED AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"AAPT: unknown option '--proguard-minimal-keep-rules'.\n\naapt2 link [options] -o arg --manifest arg files...\n\nOptions:\n -o arg Output path.\n --manifest arg

Android studio gradle stuck at Fastutil.7.2.0.jar

99封情书 提交于 2020-06-28 05:19:09
问题 This is the first time i installed android studio in my pc, but i have issue that the android studio is stuck at download fastutil-7.2.0.jar . Its been hour, but still not change. My pc also connect with internet. I already restart the software but still same. Help me with this. Help 回答1: I think google gradle repo has an error now. Open your project build.gradle Add mavenCentral() to top of repositories build.gradle repositories { mavenCentral() jcenter() google() } 来源: https://stackoverflow

PayCards Android Dependencies Errors | Could not resolve all task dependencies for configuration

血红的双手。 提交于 2020-06-28 03:41:51
问题 I recently migrated to Android Studio 4.0 and made the decision to update all dependencies, including Gradle. When I tried to compile the app, this error [the image below] is shown. This type of error usually happens when libraries are updated, so I decided to go back to a previous commit where I didn't make any modifications but I was surprised that the error was still there. I proceeded to check some similar errors on the network and made several changes with my gradle and dependencies ..

Android Studio 2.2.3: Gradle project sync failed. Basic functionality (e.g. editting, debugging) will not work properly

帅比萌擦擦* 提交于 2020-06-25 19:06:44
问题 I needed to preinstall my laptop and switched to Windows 10 . Before that I made and saved my project in Android Studio 2.2.3 and I downloaded the same version of Android Studio after preinstallation, but when I choose Open Existing Project I got the following message: Failed to sync gradle project 'ApplicationName' Error:Unable to find method 'org.gradle.api.artifacts.Configuration.setExtendsFrom(Ljava/lang/Iterable;)Lorg/gradle/api/artifacts/Configuration;'. Possible causes for this

Android Studio 2.2.3: Gradle project sync failed. Basic functionality (e.g. editting, debugging) will not work properly

被刻印的时光 ゝ 提交于 2020-06-25 19:04:11
问题 I needed to preinstall my laptop and switched to Windows 10 . Before that I made and saved my project in Android Studio 2.2.3 and I downloaded the same version of Android Studio after preinstallation, but when I choose Open Existing Project I got the following message: Failed to sync gradle project 'ApplicationName' Error:Unable to find method 'org.gradle.api.artifacts.Configuration.setExtendsFrom(Ljava/lang/Iterable;)Lorg/gradle/api/artifacts/Configuration;'. Possible causes for this

Rendering Problem: The following classes could not be found

随声附和 提交于 2020-06-25 05:05:10
问题 I want to use Toolbar Animation with Android Design Support Library.I used this information to do this: this link I configured my activity.xml file. But I got those errors: The following classes could not be found: - android.support.design.widget.AppBarLayout (Fix Build Path, Edit XML, Create Class) - android.support.design.widget.CollapsingToolbarLayout (Fix Build Path, Edit XML, Create Class) - android.support.design.widget.CoordinatorLayout (Fix Build Path, Edit XML, Create Class) -