build.gradle

How to add ojdbc7 to Java web app by Gradle?

狂风中的少年 提交于 2019-11-29 07:15:49
My context: I build a Java web application what based on Spring Boot 1.3.5.RELEASE . I try to add ojdcb to dependencies list but not success. I know that Oracle has own Maven repository at http://maven.oracle.com This is my build.gradle file, Let focus at line 4, 5, 6, 36: buildscript { repositories { mavenCentral() maven { url ("https://maven.oracle.com") } } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE") } } apply plugin: 'war' apply plugin: 'idea' apply plugin: 'spring-boot' jar { baseName = 'erp' version = '1.0.0' } repositories { mavenCentral(

Android gradle two different launcher activities for two different product flavors

我与影子孤独终老i 提交于 2019-11-29 06:57:44
This is my case productFlavors { paid { applicationId "com.paid.app" } free { applicationId "com.free.app" } } and in paid flavor I need a different launcher activity in comparison to main or free as done below main/AndroidManifest.xml <activity android:name=".MainActivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> paid/AndroidManifest.xml <activity android:name=".SecondMainActivity" android:label="@string/app_name"> <intent-filter> <action

How to exclude certain files from Android Studio gradle builds?

懵懂的女人 提交于 2019-11-29 06:49:56
问题 I am using Android Studio with Google Drive, which makes hidden system files visible (such as Icon and desktop.ini ), causing errors, as described here. Rather than run scripts to delete these files, I'd like to instruct gradle 2.14 to ignore them. In an attempt to figure out how to exclude files, I created files named "excludeme.txt" in the directories \app\src\main\res\values and in \app\src\main\java\com\hfad\stopwatch\ . I unsuccessfully tried various modifications to the two build.gradle

java.lang.NoClassDefFoundError: android.support.v4.view.LayoutInflaterCompatHC in Android Studio

旧街凉风 提交于 2019-11-29 06:48:33
i am new to android studio i am doing one sample application in android studio, when i run the application 5.0 it's working fine but 5.0 below it's throw's this Execption can any one tel what i am wrong here... 08-25 18:17:40.354 28953-28953/com.app E/AndroidRuntime﹕ FATAL EXCEPTION: main java.lang.NoClassDefFoundError: android.support.v4.view.LayoutInflaterCompatHC at android.support.v4.view.LayoutInflaterCompat$LayoutInflaterCompatImplV11.setFactory(LayoutInflaterCompat.java:42) at android.support.v4.view.LayoutInflaterCompat.setFactory(LayoutInflaterCompat.java:79) at android.support.v7.app

Android studio gradle flavor dimensions build varients not working correctly

拥有回忆 提交于 2019-11-29 06:39:36
问题 I have two dimensions of an app, call then green and blue. There will only be these two dimensions but an unlimited number of product flavors. This is the way I'm setting it up in gradle flavorDimensions "green", "blue" productFlavors { one { applicationId "com.app.green.one" versionCode 1 versionName "1.0.0.1"; flavorDimension = "green" } two { applicationId "com.app.blue.two" versionCode 6 versionName "1.0.1"; flavorDimension = "blue" } } But then after i sync gradle, in the build variants

Configuring res srcDirs for androidTest sourceSet

╄→尐↘猪︶ㄣ 提交于 2019-11-29 06:07:34
I'd like to include resources to be compiled only for testing. I have the following in my app module build.gradle file: android { ... sourceSets { androidTest { java.srcDirs = ['src/androidTest/java'] res.srcDirs = ['src/androidTest/res'] } } } The java srcDirs path is correct, yet if I try to get a resource from the res directory in androidTest, the resource can't be found. How can I have resources in the androidTest directory that are only included for tests? Turns out you don't need to change anything from the default build.gradle file. The trick is that the auto-generated R.java file is

Gradle version 2.10 is required. Current version is 2.8 Error

扶醉桌前 提交于 2019-11-29 06:02:41
Following things are using in the project- The android studio version - 2.0 Preview 4. ANDROID_BUILD_MIN_SDK_VERSION=9 ANDROID_BUILD_TARGET_SDK_VERSION=22 ANDROID_BUILD_TOOLS_VERSION=22.0.1 ANDROID_BUILD_SDK_VERSION=22 classpath 'com.android.tools.build:gradle:2.0.0-alpha9' As per the error I changed the distribution url https\://services.gradle.org/distributions/gradle-2.8-all.zip to https\://services.gradle.org/distributions/gradle-2.10-all.zip but still getting the following error Error:(1, 1) A problem occurred evaluating project ':app'. Failed to apply plugin [id 'com.android.application'

Getting the error “duplicate entry: com/google/android/gms/internal/zzble.class” when trying to add a package

随声附和 提交于 2019-11-29 05:44:23
I'm trying to add the react-native-firestack package to my app. But it keeps giving the following error : :app:mergeDebugResources UP-TO-DATE :app:recordFilesBeforeBundleCommandDebug :app:bundleDebugJsAndAssets SKIPPED :app:generateBundledResourcesHashDebug 4f53cda18c2baa0c0354bb5f9a3ecbe5ed12ab4d8e11ba873c2f11161202b945 :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO

Android-Studio refresh project with build.gradle changes

白昼怎懂夜的黑 提交于 2019-11-29 05:39:14
how can I sync changes I made in the build.gradle into the project structure ( e.g. that AndroidStudio is recognizing the lib I added? Kind of like the "reimport all maven projects" for maven projects - just for a pure gradle project. I read somewhere that the "Synchronize" item on the module's context menu should update the IDE's settings based on the build.gradle file. Ok, so in the latest version of Android Studio 0.1.3, they've added a Gradle project refresh button next to the other Android specific buttons in the toolbar. Make changes manually to the build.gradle files and settings.gradle

Cannot resolve symbol Theme, ThemeOverlay

一个人想着一个人 提交于 2019-11-29 05:32:37
I updated my android studio to latest version - 3.0.1. Since then it complains 'Cannot resolve symbol' for Theme and ThemeOverlay in the following lines of code. App runs fine but they are marked in RED in the file. styles.xml <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"></style> <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> build.gradle is updated with the latest version dependencies { classpath 'com.android.tools.build:gradle:3.0.1' } 1)Close the