build.gradle

expected reference but got (raw string) @+android:style/Animation.Translucent

陌路散爱 提交于 2020-01-03 02:41:11
问题 when I update the as version from 2.3 to 3.0 and compile the same project,there are some errors.How to solve the problem?thks. AGPBI:{ "kind":"error", "text":"error: expected reference but got (raw string) @+android:style/Animation.Translucent.", "sources":[ { "file":"/home/.../android/.../app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml", "position":{ "startLine":533 } } ], "original":"", "tool":"AAPT" }AGPBI:{ "kind":"error", "text":"error: expected

Downgrade Android Plugin in Android Studio

两盒软妹~` 提交于 2020-01-03 02:22:07
问题 I've got two workstations with Android Studio installed. The first one is having version 2.3.3, but the other one is having version 3.0. Both of them are using Gradle 3.3. The problem that I am facing is that when I create an application on the 3.0 system and then transfer it to the 2.3.3 it doesn't want to build. I am receiving Could not resolve all dependencies for configuration ':classpath'. > Could not find com.android.tools.build:gradle:3.0.0. Searched in the following locations: https:/

How can I determine what dependencies I need in the gradle build file for my Android project

那年仲夏 提交于 2020-01-03 01:40:13
问题 So far Android studio has handled this, but it is not infallible. Given the information of target build version (27) and which components I require (TabViews with Fragments, but no need for swiping), where can I find the information required to determine what goes in the module build.gradle dependencies? 回答1: This might not be the solution, but a little help. Here are two links that list the libraries. Android Support libraries: https://developer.android.com/topic/libraries/support-library

Error:Configuration with name 'default' not found when trying to import project as library into Android Studio

回眸只為那壹抹淺笑 提交于 2020-01-03 00:23:16
问题 I checked all the other threads about this topic but couldn't find an answer. I am trying to import the Twoway View Project as a library into Android Studio . Both projects run fine on their own but I always get the same Gradle Error: Error:Configuration with name 'default' not found when trying to import. I have the project copied into a " libraries " directory in the root folder of my project and the following gradle structure: settings.gradle of my project: include ':libraries:twoway-view

In gradle, should I exclude all dependencies under a branch or just the root is enough?

牧云@^-^@ 提交于 2020-01-02 08:38:11
问题 I've added following custom task into my build.gradle file In order to print out dependencies of a dependency. // This part is useful for finding conflict resolution(s) between dependencies in order to exclude them. // You can change the custom value and run following command in terminal: // ./gradlew passenger-sdk:dependencies --configuration custom configurations { custom } dependencies { custom 'com.google.android.gms:play-services-analytics:7.3.0' } So the result is: $ ./gradlew passenger

Multiproject gradle duplicate dependencies in distribution ZIP

最后都变了- 提交于 2020-01-02 06:17:19
问题 I have a gradle multi-project setup for which I wish to collect all the dependent and output JARs into a ZIP at the top level. I've got something working, however I end up with duplicates in the ZIP file. I've not found anything useful in the official documentation on multi project setups How can I remove the duplicates? Is there another approach I should take? Structure ./multi-project ./multi-project/build.gradle ./multi-project/settings.gradle ./multi-project/bar ./multi-project/bar/build

gradle-experimental:0.1.0 buildConfigField

本小妞迷上赌 提交于 2020-01-02 05:41:08
问题 Anyone know how to define buildConfigField in the experimental gradle plugin? android.productFlavors { create("demo") { applicationId = 'com.anthonymandra.rawdroid' buildConfigField "String", FIELD_META, PROVIDER_META } gives: Error:Attempt to read a write only view of model of type 'java.lang.Object' given to rule 'model.android.productFlavors' 回答1: With the buildType you can use a syntax like this: android.buildTypes { debug { buildConfigFields.with { create() { type = "String" name =

I get only app-release-unaligned.apk when I press generate signed apk

旧城冷巷雨未停 提交于 2020-01-02 04:58:47
问题 I always get "app-release-unaligned.apk". I can't get "app-release.apk". But before I've updated Android SDK, I can get both "app-release.apk" and "app-release-unaligned.apk" after pressing Build->Generate Signed Apk... System Mac OS. Android Studio 1.5.1. Android SDK Tools 25.1.1. Android SDK Platform-tools 23.1. Android SDK Build-tools 23.0.3. I found the similar problem on Android Developer Tools Google Plus UPD1 I've used cmd to align my apk. Because I could not publish my application to

gradle jacocoTestReport is not working?

寵の児 提交于 2020-01-02 00:50:39
问题 I have tried to get code coverage in a spring-gradle project using gradle jacoco plugin. The build.gradle contains the following apply plugin: "jacoco" jacoco { toolVersion = "0.7.1.201405082137" reportsDir = file("$buildDir/customJacocoReportDir") } jacocoTestReport { reports { xml.enabled false csv.enabled false html.destination "${buildDir}/jacocoHtml" } } I then ran gradle test jacocoTestReport Where after only the file test.exec is generated in build/reports folder. Other than that

Cannot resolve com.google.android.gcm.GCMBaseIntentService; Android studio

风流意气都作罢 提交于 2020-01-01 16:39:13
问题 Edit: I solved this problem:) Cause of this error : In the tutorial Implementing GCM Client , there was link to download full source code for demo. Downloaded for reference , added google_play_service library in build.gradle. Did some recommended changes like SENDER_ID,SERVER_URL,.. etc Synch the project with gradle and got this error. How I solved! After lot of google I found that this class is not in google_play_service library but it is in gcm.jar which is deprecated now. I dont know why