build.gradle

Manifest mergeing - Android studio 0.8.1 upgrade build error: property 'manifestFile' does not exist

℡╲_俬逩灬. 提交于 2019-12-06 10:28:14
问题 I have just upgraded to Android Studio 0.8.1 and upgraded build tools ect. from Android Studio 0.6 But then I get this build error: A problem was found with the configuration of task ':processDevelopmentDebugResources'. File 'C:\ProjectFolder\build\manifests\DevelopmentDebug\Development\debug\AndroidManifest.xml' specified for property 'manifestFile' does not exist. But I can't figure out what the problem is. The folder manifests under build does not exists. I suspect it has something to do

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

不羁的心 提交于 2019-12-06 08:58:39
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 this is not part of Source Control. To overcome this I have used the solution from this post . Here I am

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

此生再无相见时 提交于 2019-12-06 08:18:51
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/xxxxxxx/.gradle/caches/modules-2/files-2.1/com.sun.jersey.contribs/jersey- multipart/1.19.1

Duplicated “IInAppBillingService.aidl” File - Library + App

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 08:09:53
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: com/android/vending/billing/IInAppBillingService$Stub$Proxy.class For the time being I was just using

cannot resolve symbol 'android' on android studio

怎甘沉沦 提交于 2019-12-06 07:32:55
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; import com.google.android.maps.GeoPoint; import com.google.android.maps.MapActivity; import com.google

Duplicate Entry for ':app:transformClassesWithJarMergingForDebug'

百般思念 提交于 2019-12-06 07:14:10
问题 I am Importing my project from Eclipse , while building an APK i found following Error. Error:Execution failed for task com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/plus/PlusOneButton$OnPlusOneClickListener.class Error:Execution failed for task ':gruhini:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/games

why gradlew :app:dependencyInsight failed?

瘦欲@ 提交于 2019-12-06 07:12:24
问题 I try to run this command to list all the dependencies of firebase-messaging library : gradlew :app:dependencyInsight --configuration compile --dependency firebase-messaging but it's return me : :app:dependencyInsight No dependencies matching given input were found in configuration ':app:compile' BUILD SUCCESSFUL in 0s 1 actionable task: 1 executed this is my build.gradle file : apply plugin: 'com.android.application' android { compileSdkVersion 27 defaultConfig { applicationId "com.example

Unexpected node Android Packaging in Android Gradle build

怎甘沉沦 提交于 2019-12-06 06:31:19
问题 I am trying to make my project use gradle . The problem is that everytime I try to build, I get the following error: Error:Internal error: (java.lang.AssertionError) Unexpected node Android Packaging; nodes=[Module 'Serengeti' production, Resources for 'Serengeti' production, Resources for 'Serengeti' tests, Artifact 'Serengeti', gradle-resources-production:Serengeti, gradle-resources-test:Serengeti, Android Gradle Build Target] java.lang.AssertionError: Unexpected node Android Packaging;

Can't add LocalBroadcastManager to project in Android Studio

瘦欲@ 提交于 2019-12-06 06:01:51
I think I've tried everything now... I've been all over stack overflow, I've even consulted the android doc Most of the posts here show how to add the .jar file in Eclipse "android tools -> add support library" or something So I've tried to do it how the doc tells me, by going to build.gradle, and adding compile 'com.android.support:support-v4:19.0.0' to the dependencies but even if I add it, and rebuild the project, I still can't import android.support.v4.content.LocalBroadcastManager ... it doesn't even know what android.support is... So is there anyone who can help me with this? the issue

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

吃可爱长大的小学妹 提交于 2019-12-06 05:57:16
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(std::string const&)' Error:error: undefined reference to 'std::_Rb_tree_decrement(std::_Rb_tree_node_base