build.gradle

No resource found Errors for support:appcompat-v7:22.0.0 on Android Studio

眉间皱痕 提交于 2019-11-29 14:09:16
Am trying to add the Design support Library following this guidelines https://github.com/codepath/android_guides/wiki/Design-Support-Library and i'm having issues. dependencies { compile 'com.android.support:appcompat-v7:22.2.0' } Trying to add this and Its giving me lots of XML errors when building. Error:(24, 63) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha'). Error:(25, 93) No resource found that matches the given name (at 'drawable' with value '@drawable/abc_textfield_default_mtrl_alpha'). Error:(26, 33) No resource

Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 7

China☆狼群 提交于 2019-11-29 13:12:06
I'm studying this Building Simple Chat Client with Parse and I'm using gradle 2.4 to build my project. My build.gradle and AndroidManifest.xml codes are: build.gradle buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:1.1.3' } } apply plugin: 'com.android.application' android { compileSdkVersion 22 buildToolsVersion "22.0.1" } repositories { jcenter() } dependencies { compile fileTree(dir: 'libs', include: 'Parse-*.jar') compile 'com.parse.bolts:bolts-android:1.+' } dependencies { compile fileTree(dir: 'libs', include: '*.jar') compile 'com

Gradle builds for every resource folder

回眸只為那壹抹淺笑 提交于 2019-11-29 12:37:31
问题 Is it possible to config Gradle to build few android apk files where each would be using only one resource-type folder? I mean: build-hdpi.apk build-mdpi.apk build-xhdpi.apk I know I could simply remove certain folders before building, but it would be nice if I could make it "automagically". Would it be possible with using gradle "flavors"? 回答1: Now we can also use api splits http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits Example From the docs link : android { ...

Error:Could not find com.android.tools.build:gradle:3.3. Issue raise after upgrading gradle version for splunk:mint-android-sdk

可紊 提交于 2019-11-29 12:21:25
问题 My App was working fine, then i add com.splunk:mint-android-sdk, which required upper version of gradle, so i upgrade the gradle to from 2.1 to 3.3. after that i am facing issues. Please review my gradle file and help me out and please guide me how it work.( This is my first app but i want sure make its should be working fine in all scenario ) Error:Could not find com.android.tools.build:gradle:3.3. Searched in the following locations: file:/C:/Program Files/Android/Android Studio/gradle

implementation 'com.android.support:appcompat-v7:28.0.0'

让人想犯罪 __ 提交于 2019-11-29 11:38:20
问题 I am moving my first steps with app programming. I searched the other topics that relate to this matter and tried all the solutions but still it's driving me mad: building on Android Studio I cannot make it through this error about implementation 'com.android.support:appcompat-v7:28.0.0' : All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 28.0.0 , 26.1.0 . Examples include com.android.support:animated

How to declare gradle version 5.0 in build.gradle?

戏子无情 提交于 2019-11-29 11:33:24
I used task wrapper when Gradle was 4.x but when I change gradleVersion to 5.0 , gradle wrapper states that it can't add a task with the same name. This didn't happen when it was 4.x when I could just change from 4.8 to 4.9 without issues. Does Gradle changed how task wrapper works? Defining a custom wrapper task in your build script has been deprecated since Gradle 4.8 version, see Gradle 4.8 depreciations (section Overwriting Gradle's built-in tasks" section ) Since version 4.8 (and before 5.0) you should have a warning message as below if you still define a custom wrapper task: $ ./gradlew

Assertion Error in Android Studio when trying to compile the working project

懵懂的女人 提交于 2019-11-29 11:21:25
问题 While I was trying to build my working project in the updated Android Studio (0.3.6), I got the below error message. It works fine when I build via CLI. java.lang.AssertionError at com.android.tools.idea.gradle.compiler.AndroidGradleBuildProcessParametersProvider.getVMArguments(AndroidGradleBuildProcessParametersProvider.java:101) at com.intellij.compiler.server.BuildManager.launchBuildProcess(BuildManager.java:921) at com.intellij.compiler.server.BuildManager.access$1900(BuildManager.java

Android Studio building errors using react native app

喜你入骨 提交于 2019-11-29 11:20:22
I have been trying to create an app using react native using expo tools xde and then detach it using exp detach, when I open in Android Studio I get quite many error when building like: Using incompatible plugins for the annotation processing Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android

What is the best way to solve the UNEXPECTED TOP-LEVEL EXCEPTION?

北城余情 提交于 2019-11-29 11:02:43
When I make the application use many libraries. I usualy meet a error is UNEXPECTED TOP-LEVEL EXCEPTION This error have some reason as: Number function > 65k, we need enable multidex for it There are some libs is nested, we need add exclude in build.gradle. About second case, it is very difficult to detect what is the lib have been nested. If you have experience on this issue, please share me. UPDATE: dependencies { compile files('libs/ormlite-android-4.48.jar') compile files('libs/ormlite-core-4.48.jar') // compile 'com.obsez.android.lib.filechooser:filechooser:1.1.2' // compile 'com.github

Is there a max value for versioncode?

折月煮酒 提交于 2019-11-29 10:57:45
问题 We always have to increment versionCode by some arbitary number to publish it to google play. Is there limit to that value and what will happen if it is reached? defaultConfig { applicationId "my.app" minSdkVersion 15 targetSdkVersion 22 versionCode 65 versionName "1.05" setProperty("archivesBaseName", "myapp-$versionCode") } 回答1: Update 08/11/2016 (UTC): The docs has been updated. Not the old MAX_INT value nor the 2000000000. Warning: The greatest value Google Play allows for versionCode is