build.gradle

Adding firebase to libgdx project built with gradle

匆匆过客 提交于 2019-12-23 02:20:26
问题 Here is my gradle.build. Im trying to add the firebase dependency so I can play with the simple login functions but gradle looks like it cant find the dependency. I copy and pasted what the firebase simple login example said to add to the build.gradle file but im coming up with this error. Included is the build.gradle file and a full stack trace of when I tried to build it from command line. buildscript { repositories { mavenCentral() mavenLocal() maven { url 'https://github.com

Adding firebase to libgdx project built with gradle

跟風遠走 提交于 2019-12-23 02:20:00
问题 Here is my gradle.build. Im trying to add the firebase dependency so I can play with the simple login functions but gradle looks like it cant find the dependency. I copy and pasted what the firebase simple login example said to add to the build.gradle file but im coming up with this error. Included is the build.gradle file and a full stack trace of when I tried to build it from command line. buildscript { repositories { mavenCentral() mavenLocal() maven { url 'https://github.com

Android studio(2.1.1 April 28-2016) Strange Error converting bytecode to dex. Dex cannot parse version 52 byte code

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 23:11:11
问题 I'm trying to build my project and get this strange error (cause all worked perfectly in previous AS versions) Error:Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's build.gradle file. I understand that the problem is that (as the

Duplicate files copied in APK META-INF on many libraries?

微笑、不失礼 提交于 2019-12-22 18:31:02
问题 I get this error when trying to build APK, Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/services/com.sun.jersey.spi.inject.InjectableProvider File1: /home/xxxxxxx/.gradle/caches/modules-2/files- 2.1/com.sun.jersey/jersey-core/1.19.1/4282d106f2acd5051bd9bc2935ed9a2920c9385/jersey-core-1.19.1.jar File2: /home

How to resolve the dependency and compile the Junit test classes using Gradle Bulid Tool

孤人 提交于 2019-12-22 18:27:18
问题 I'm new to Gradle, currently i added a small java projects and executed well. Correct me if my understanding since java is available we are able to complie the java project and executed well. To test i have wirtten a test class with help of junit, but I couldn't not compile and not able to pull the dependency from the maven there was an issue. When I checked with stacktrace option I find that the issue is java.net.UnknownHostException: repo1.maven.org when i tried to access through google it

Duplicated “IInAppBillingService.aidl” File - Library + App

你。 提交于 2019-12-22 15:01:24
问题 since almost 2 months I'm searching for a solution for the following Problem. I implemented a library in my app which also includes the IInAppBillingService.aidl file and the other parts of the In App Billing Library from Google. When I'm trying to compile a release version of my app it just throws the following error: Error:Execution failed for task ':app:transformClassesWithJarMergingForRelease'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry

Android NDK linker Error:error: undefined reference to std::basic_string

天大地大妈咪最大 提交于 2019-12-22 12:37:53
问题 I am currently trying to build a static library of some source c++ files requiring boost. I have been following the hello-libs example and have successfully linked the boost static file dependencies as is done in the sample example.Now said that, during while building the module I get these erros : Error:error: undefined reference to 'std::basic_string, std::allocator >::basic_string(char const*, std::allocator const&)' Error:error: undefined reference to 'std::runtime_error::runtime_error

Add Custom values to build.gradle file via build-extras.gradle in Cordova

坚强是说给别人听的谎言 提交于 2019-12-22 12:25:30
问题 I had updated cordova-android version to 6.4.0 and before that I had 5.1.1 installed. Here the problem was that when updated to 6.4.0 version, while building the project I was getting error. So to overcome that issue I had to add the below code configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.0' } } Now the problem is every time I build the project I have to edit build.gradle file, which is generated while adding the platform to the project in Cordova. As

cannot resolve symbol 'android' on android studio

时光毁灭记忆、已成空白 提交于 2019-12-22 11:29:40
问题 I have been making an app showing MapView, It got build and I even am using it on my device now that i want to add still more functionality , but suddenly studio is giving errors "cannot resolve symbol 'android'."...!!!! I updated studio to 0.8.6 (latest) .... but damn..!! nothing changes .. Errors : package com.androidhive.googleplacesandmaps; import java.util.List; import android.content.Intent; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.util.Log;

Android Studio 3.0 submodule compile failed

六眼飞鱼酱① 提交于 2019-12-22 10:54:08
问题 App level build gradle dependencies devCompile project(path: ':mymodule', configuration: 'devRelease') proCompile project(path: ':mymodule', configuration: 'proRelease') qaCompile project(path: ':mymodule', configuration: 'qaRelease') offlineCompile project(path: ':mymodule', configuration: 'offlineRelease') mentioned publishNonDefault true flavorDimensions "default" I have tried This accepted answer but didn't work. Update: Look at the library gradle flavor that I want to compile. I have the