build.gradle

How to access .java files from a directory outside of a package in android-studio?

一个人想着一个人 提交于 2019-12-12 04:56:16
问题 I try to solve this problem for hours now and didn't find a solution on the internet. my project looks like this: I want to access the files in the marked directory in the de.MayerhoferSimon.Vertretungsplan package. (yes, I know packages should be lowercase.) Is this possible and when yes, how? I tried some things with the dependencies in the .gradle file of the :app module but nothing worked. 回答1: In this case you should create a library module for your webuntisaccessor code instead of

Using AspectJ .aj file with Android Studio, weaving appears to not be happening

烈酒焚心 提交于 2019-12-12 04:48:35
问题 I am new to AspectJ, and we are working on migrating a third-party application originally written using Eclipse to use Android Studio 1.1.0 and Gradle instead. We have taken an external library this app needs and created a library module in the project, and this library has an AspectJ .aj file that we need to compile and have work with the main app for a field-level Observable pattern. Using the plugin found here, I have been able to get the .aj file to compile into a .class file, verified by

Add local android support library to a gradle build without using SDK Deployer to add to mavenLocal

一个人想着一个人 提交于 2019-12-12 04:43:32
问题 I'm having trouble figuring out how to add android support library to a gradle build, without using SDK Deployer to add the library to mavenLocal . The main problem is how to configure the build to use the location on a local file system to resolve support library dependencies specified in the build file. 回答1: Figured this out. In case anyone else is trying to do the same, you need to add the local support library location to the gradle build repositories configuration in your build.gradle

Error while compiling React-native duplicate entry: javax/inject/Inject.class

回眸只為那壹抹淺笑 提交于 2019-12-12 04:33:16
问题 I downloaded a React-native project from the web called react-native-obd2. Before I got started I just wanted to run the example that was already given in the repo but while running react-native run-android I am getting stuck at an error. :app:transformClassesWithJarMergingForDebug FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip

Failed to complete Gradle execution cause: org/gradle/Internal/TrueTimeProvider

Deadly 提交于 2019-12-12 03:48:49
问题 I am new to Android and while I am building project I am getting this type of error: Failed to complete Gradle execution cause: org/gradle/Internal/TrueTimeProvider I searched a lot through Google and Stack Overflow but no help. 回答1: Try performing a clean build from build->clean project 回答2: Download any gradle of version greater than 3.2 link : https://services.gradle.org/distributions/ Extract it and save it in a suitable place in your computer. Open android studio and open settings. File-

Gradle build error : Duplicate entry

不想你离开。 提交于 2019-12-12 03:45:47
问题 My gradle file is apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "24.0.0 rc2" defaultConfig { applicationId "com.test.test" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" multiDexEnabled true } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } buildscript { repositories { mavenCentral() jcenter() } dependencies { classpath 'com.android.tools.build

Why am I getting Unsupported major.minor version 51.0

♀尐吖头ヾ 提交于 2019-12-12 03:44:24
问题 I am trying to compile a basic skeleton of Spring Boot 1.3.6.RELEASE application with Gradle 2.14.1. I need to use Java 6 . I can't upgrade to Java 7 or 8. Why am I getting a failed gradle build with Unsupported major.minor version 51.0 The exception seems to be pointing to the line apply plugin: 'spring-boot' My gradle.properties file contains: org.gradle.java.home=C:/Program Files/Java/jdk1.6.0_45 I have tried to include the following to use Tomcat 7 instead of Tomcat 8 but this did not

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/common/api/zza.class

对着背影说爱祢 提交于 2019-12-12 01:54:37
问题 Below is the error I am getting after adding the Firebase, google services in gradle and google-services.json in app module. I have 13 modules in my app. I have 7 build variants in all the modules. I tried with placing the google-services.json in app module and placing it in build variant folder inside the app module. I am getting same error. I have the notification feature in one build variant. I removed the firebase related code in gradle and google-services.json from application, it is

compile 'com.firebaseui:firebase-ui:0.4.3 how to fix error. i get every time error with any firebase ui dependencies

断了今生、忘了曾经 提交于 2019-12-12 01:49:55
问题 Error:Execution failed for task ':app:compileDebugJavaWithJavac'. Compilation failed; see the compiler error output for details how to fix this error please ans me my build.gradle apply plugin: 'com.android application' android { compileSdkVersion 25 buildToolsVersion '25.0.2' defaultConfig { applicationId "com.example.mayur.mahadev" minSdkVersion 22 targetSdkVersion 25 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes {

How to change applicationID dynamically

不想你离开。 提交于 2019-12-12 01:44:16
问题 I am trying to change my applicationId by appending it the original id with the branch name of the GIT branch. The Script renameID.sh does the work of renaming applicationID. Although I can successfully rename the ApplicationID while running build, but I want that applicationID is restored after build. The script restoreID is to restore the applicationID to original name, but doesn't seems to work. Can someone point what am I doing wrong or suggest some better way to perform my objective task