Build failed with an exception : could not get unknown property 'mergeResourcesProvider' - react-native

After i install #expo/vector-icons
i can't build my application again with this error appear.
*Where
Script 'C:\Users\Mostafa\SecurityEye\node_modules\react-native\react.gradle' line: 95
A problem occurred configuring project ':app'.
could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.
line 95:
variant.mergeResourcesProvider.get().dependsOn(currentBundleTask)

maybe you can update gradle version to 4.10.1 android buildtool to 3.3.0

Related

Error while specifying compileSdkversion in React Native Expo App

I have built a React Native app using Expo. Testing works fine in the emulator, but when I try to do an Android build I have errors. When I use the command npx expo run:android, I get the following error:
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* Where:
Script 'C:\Users\thish\OneDrive\Desktop\MottozPrinter\node_modules\expo-modules-autolinking\scripts\android\autolinking_implementation.gradle' line: 272
* What went wrong:
A problem occurred evaluating project ':expo'.
> A problem occurred configuring project ':expo-modules-core'.
> Failed to notify project evaluation listener.
> The filename, directory name, or volume label syntax is incorrect
> Could not get unknown property 'release' for SoftwareComponentInternal set of type org.gradle.api.internal.component.DefaultSoftwareComponentContainer.
2: Task failed with an exception.
-----------
* What went wrong:
A problem occurred configuring project ':expo'.
> compileSdkVersion is not specified. Please add it to build.gradle
Here is my build.gradle android configuration:

React native screens configuration failed

trying to build an android project,and gradle fails with this exception:
org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':react-native-screens'.
Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'archiveClassifier' for task ':react-native-screens:androidJavadocJar' of type org.gradle.api.tasks.bundling.Jar.
According to the PR that created this change you need Gradle 4.10+. So if you update it should work again. You need to update the version of the gradle plugin to 3.3.2 as well. I'm not sure but I do think you could even update to Gradle 5.x and build plugin 3.4+.
Link referenced to Create My Answer

Adding sub module to project causing gradle build failures in Android studio 3.0 with gradle version 4.1

I added sub module library vertical-stepper-form version 0.9.8, while I set dependency of this library on my app module. I was able to do it successfully.
I am using Android Studio 3.0 with gradle version 4.1, few of the classes in project are in kotlin and others in java
When I started gradle sync it gave me this error. The gradle is not building and showing below issues :
/*********************************/
Information:Gradle tasks [:vertical-stepper-form:generateDebugSources,
:vertical-stepper-form:generateDebugAndroidTestSources,
:vertical-stepper-form:mockableAndroidJar,
:app:generateInstallDebugSources,
:app:generateInstallDebugAndroidTestSources, :app:mockableAndroidJar]
D:\Devavrata\project/package/src/main/res/abc.xml Error:error:
attribute 'com.spireon.install:src' not found.
D:\Devavrata\AbcProject\abc-Android\app\build\intermediates\incremental\mergeInstallDebugResources\stripped.dir\layout\activity_main.xml
Error:attribute 'com.spireon.install:src' not found. Error:failed
linking file resources. Error:java.util.concurrent.ExecutionException:
java.util.concurrent.ExecutionException:
com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for
details Error:java.util.concurrent.ExecutionException:
com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for
details Error:com.android.tools.aapt2.Aapt2Exception: AAPT2 error:
check logs for details Error:Execution failed for task
':app:processInstallDebugResources'.
Failed to execute aapt Information:BUILD FAILED in 24s Information:7 errors Information:0 warnings Information:See complete output in
console
/********************************/
What I have already tried :
I tried with changing import lines in xml also changing the android:src and srcCompat properties. Along with build/project cleaning and invalidating the cache.
Changing this line in gradle.properties
android.enableAapt2=false
Let me know if anyone has faced this issue

Error run Desktop libgdx when import with Gradle

I've imported a Libgdx projecto using Gradle.
After I've followed these instructions: https://github.com/libgdx/libgdx/wiki/Gradle-and-Intellij-IDEA#running-your-project
But, it returns the next bug when trying launch the desktop version:
(*class Bootstrap is the main class of the core)
Information:Gradle: Executing tasks: [:desktop:assemble, :core:assemble]
Information:18/06/2015 10:29 - Compilation completed with 3 errors and 1 warning in 5s 37ms
Error:Gradle: Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Warning:Gradle: [options] bootstrap class path not set in conjunction with -source 1.6
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) Gradle: error: cannot find symbol class Bootstrap
Error:(12, 28) Gradle: error: cannot find symbol class Bootstrap
I'm using Android Studio 1.2.2
And when I execute the "Make" button, gives me the next error:
D:\workspace\delee\desktop\src\com\josemwarrior\delee\desktop\DesktopLauncher.java
Error:(5, 30) error: cannot find symbol class Bootstrap
Error:(12, 28) error: cannot find symbol class Bootstrap
1 warning
Error:Execution failed for task ':desktop:compileJava'.
Compilation failed; see the compiler error output for details.
Just select Build->Clean, and Build->Rebuild project, and all gone fine

Version mismatch in xcactivitylog after upgrading to XCode 4.2

I upgraded to XCode 4.2 and am getting the warning below while running command line builds
2011-10-22 20:16:39.327 xcodebuild[71845:1903] [MT] IDELogStore: Failed to open Build log store: Error Domain=IDEFoundationErrorDomain Code=1 "deserialization of log failed because of a version number mismatch" UserInfo=0x4011105e0
The build continues to succeed.
Also, there's no such warning while running from XCode.
How do I fix it?
I had this problem too and was able to resolve it by cleaning my project, removing ~/Library/Developer/Xcode/DerivedData/MYAPP and then rebuilding.