I tried to build a release from the project. The app is working with iOS Simulator when running with react-native.
It should build Android Release APK.
:react-native-mauron85-background-geolocation-common:compileOreoReleaseJavaWithJavac
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:4: error: cannot find symbol
import android.app.NotificationChannel;
^
symbol: class NotificationChannel
location: package android.app
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/sync/SyncAdapter.java:140: error: constructor Builder in class Builder cannot be applied to given types;
NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/sync/SyncAdapter.java:182: error: constructor Builder in class Builder cannot be applied to given types;
NotificationCompat.Builder builder = new NotificationCompat.Builder(getContext(), NotificationHelper.SYNC_CHANNEL_ID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:50: error: constructor Builder in class Builder cannot be applied to given types;
NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext, NotificationHelper.SERVICE_CHANNEL_ID);
^
required: Context
found: Context,String
reason: actual and formal argument lists differ in length
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:86: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:89: error: cannot find symbol
NotificationChannel serviceChannel = new NotificationChannel(SERVICE_CHANNEL_ID, appName, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: variable IMPORTANCE_DEFAULT
location: class NotificationManager
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:96: error: cannot find symbol
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
^
symbol: variable O
location: class VERSION_CODES
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: class NotificationChannel
location: class NotificationHelper
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-mauron85-background-geolocation/android/common/src/oreo/java/com/marianhello/bgloc/NotificationHelper.java:100: error: cannot find symbol
NotificationChannel syncChannel = new NotificationChannel(SYNC_CHANNEL_ID, SYNC_CHANNEL_NAME, android.app.NotificationManager.IMPORTANCE_DEFAULT);
^
symbol: variable IMPORTANCE_DEFAULT
location: class NotificationManager
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
12 errors
:react-native-mauron85-background-geolocation-common:compileOreoReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
https://stackoverflow.com/questions/51130029/react-native-mauron85-background-geolocation-error
Somebody else also having this.
I have same problem
Any chance you have enabled experimental oreo (or gradle3) support? If so, you are missing oreo sdk or google maven repo or both.
@mauron85 I haven't enabled API 26 in anywhere. I went though gradles file and it has API level of 23.0.1 . Is there any specific place I should check?
Did you have any update on this? I'm having the same problem.
@mauron85 I am having this issue, although the apk is located in the app/build/outputs/apk but building apk is failing after 95%. I have tried the solutions suggested in https://stackoverflow.com/questions/44105127/android-studio-3-0-flavor-dimension-issue. Failed to solve the problem. Is there anything else I can do? Please help.
@mauron85 I'm having the same exact issue here as well. targetSDKVersion: 26 is the only place I have reference it and I'm only doing that to comply with Google's new min version requirement. Anyone else solve this? Thanks!
UPDATE: It also fails at 22, 23. It does build if I'm building from Android Studio in debug. But trying to build a signed APK for distribution using ./gradlew assembleRelease is where it fails
@kcfgl After tearing off a lot of hairs (although I lack it) I came to a solution. Not sure whether is gonna work for you or not, you can give it a try. Add following codes in android/build.gradle
allprojects {
repositories {
mavenLocal()
jcenter()
maven { url "https://maven.google.com" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
ext {
compileSdkVersion = 26
targetSdkVersion = 26
buildToolsVersion = "26.0.2"
supportLibVersion = "26.1.0"
googlePlayServicesVersion = "11.8.0"
}
And make sure the dependencies are installed.
@monicse09ku legend! thank you so much for this, it worked great!
@monicse09ku
I tried with your solution and I get
$ cd android && ./gradlew assembleRelease
Incremental java compilation is an incubating feature.
:app:preBuild UP-TO-DATE
:app:preReleaseBuild UP-TO-DATE
:app:checkReleaseManifest
:app:preDebugBuild UP-TO-DATE
:react-native-device-info:preBuild UP-TO-DATE
:react-native-device-info:preReleaseBuild UP-TO-DATE
:react-native-device-info:checkReleaseManifest
:react-native-device-info:preDebugAndroidTestBuild UP-TO-DATE
:react-native-device-info:preDebugBuild UP-TO-DATE
:react-native-device-info:preDebugUnitTestBuild UP-TO-DATE
:react-native-device-info:preReleaseUnitTestBuild UP-TO-DATE
:react-native-device-info:prepareComAndroidSupportAppcompatV72301Library
:react-native-device-info:prepareComAndroidSupportSupportCompat2520Library
:react-native-device-info:prepareComAndroidSupportSupportCoreUi2520Library
:react-native-device-info:prepareComAndroidSupportSupportCoreUtils2520Library
:react-native-device-info:prepareComAndroidSupportSupportFragment2520Library
:react-native-device-info:prepareComAndroidSupportSupportMediaCompat2520Library
:react-native-device-info:prepareComAndroidSupportSupportV42520Library
:react-native-device-info:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-device-info:prepareComFacebookFrescoDrawee130Library
:react-native-device-info:prepareComFacebookFrescoFbcore130Library
:react-native-device-info:prepareComFacebookFrescoFresco130Library
:react-native-device-info:prepareComFacebookFrescoImagepipeline130Library
:react-native-device-info:prepareComFacebookFrescoImagepipelineBase130Library
:react-native-device-info:prepareComFacebookFrescoImagepipelineOkhttp3130Library
:react-native-device-info:prepareComFacebookReactReactNative0554Library
:react-native-device-info:prepareComFacebookSoloaderSoloader010Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBase1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBasement1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesGcm1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesGcmLicense1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesIid1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesIidLicense1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesTasks1180Library
:react-native-device-info:prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library
:react-native-device-info:prepareOrgWebkitAndroidJscR174650Library
:react-native-device-info:prepareReleaseDependencies
:react-native-device-info:compileReleaseAidl
:react-native-device-info:compileReleaseNdk UP-TO-DATE
:react-native-device-info:compileLint
:react-native-device-info:copyReleaseLint UP-TO-DATE
:react-native-device-info:compileReleaseRenderscript
:react-native-device-info:generateReleaseBuildConfig
:react-native-device-info:generateReleaseResValues
:react-native-device-info:generateReleaseResources
:react-native-device-info:mergeReleaseResources
:react-native-device-info:processReleaseManifest
:react-native-device-info:processReleaseResources
:react-native-device-info:generateReleaseSources
:react-native-device-info:incrementalReleaseJavaCompilationSafeguard
:react-native-device-info:compileReleaseJavaWithJavac
:react-native-device-info:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: /Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:react-native-device-info:extractReleaseAnnotations
:react-native-device-info:mergeReleaseShaders
:react-native-device-info:compileReleaseShaders
:react-native-device-info:generateReleaseAssets
:react-native-device-info:mergeReleaseAssets
:react-native-device-info:mergeReleaseProguardFiles UP-TO-DATE
:react-native-device-info:packageReleaseRenderscript UP-TO-DATE
:react-native-device-info:packageReleaseResources
:react-native-device-info:processReleaseJavaRes UP-TO-DATE
:react-native-device-info:transformResourcesWithMergeJavaResForRelease
:react-native-device-info:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-device-info:mergeReleaseJniLibFolders
:react-native-device-info:transformNative_libsWithMergeJniLibsForRelease
:react-native-device-info:transformNative_libsWithSyncJniLibsForRelease
:react-native-device-info:bundleRelease
:react-native-mauron85-background-geolocation:preBuild UP-TO-DATE
:react-native-mauron85-background-geolocation:preReleaseBuild UP-TO-DATE
:react-native-mauron85-background-geolocation:checkReleaseManifest
:react-native-mauron85-background-geolocation:preDebugAndroidTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation:preDebugBuild UP-TO-DATE
:react-native-mauron85-background-geolocation:preDebugUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation:preReleaseUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:preBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prePreoreoDebugBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:checkPreoreoDebugManifest
:react-native-mauron85-background-geolocation-common:preOreoDebugAndroidTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:preOreoDebugBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:preOreoDebugUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:preOreoReleaseBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:preOreoReleaseUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prePreoreoDebugAndroidTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prePreoreoDebugUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prePreoreoReleaseBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prePreoreoReleaseUnitTestBuild UP-TO-DATE
:react-native-mauron85-background-geolocation-common:prepareAndroidArchLifecycleRuntime100Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportAnimatedVectorDrawable2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportAppcompatV72610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportCompat2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportCoreUi2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportCoreUtils2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportFragment2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportMediaCompat2610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportV42610Library
:react-native-mauron85-background-geolocation-common:prepareComAndroidSupportSupportVectorDrawable2610Library
:react-native-mauron85-background-geolocation-common:prepareComGithubTony19ApktoolLib1445Library
:react-native-mauron85-background-geolocation-common:prepareComGithubTony19LogbackAndroid1119Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesBase1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesBasement1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesLocation1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesLocationLicense1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesTasks1180Library
:react-native-mauron85-background-geolocation-common:prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library
:react-native-mauron85-background-geolocation-common:prepareComIntentfilterAndroidPermissions016Library
:react-native-mauron85-background-geolocation-common:preparePreoreoDebugDependencies
:react-native-mauron85-background-geolocation-common:compilePreoreoDebugAidl
:react-native-mauron85-background-geolocation-common:compilePreoreoDebugNdk UP-TO-DATE
:react-native-mauron85-background-geolocation-common:compileLint
:react-native-mauron85-background-geolocation-common:copyPreoreoDebugLint UP-TO-DATE
:react-native-mauron85-background-geolocation-common:compilePreoreoDebugRenderscript
:react-native-mauron85-background-geolocation-common:generatePreoreoDebugBuildConfig
:react-native-mauron85-background-geolocation-common:generatePreoreoDebugResValues
:react-native-mauron85-background-geolocation-common:generatePreoreoDebugResources
:react-native-mauron85-background-geolocation-common:mergePreoreoDebugResources
:react-native-mauron85-background-geolocation-common:processPreoreoDebugManifest
:react-native-mauron85-background-geolocation-common:processPreoreoDebugResources
:react-native-mauron85-background-geolocation-common:generatePreoreoDebugSources
:react-native-mauron85-background-geolocation-common:incrementalPreoreoDebugJavaCompilationSafeguard
:react-native-mauron85-background-geolocation-common:compilePreoreoDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:react-native-mauron85-background-geolocation-common:extractPreoreoDebugAnnotations
:react-native-mauron85-background-geolocation-common:mergePreoreoDebugShaders
:react-native-mauron85-background-geolocation-common:compilePreoreoDebugShaders
:react-native-mauron85-background-geolocation-common:generatePreoreoDebugAssets
:react-native-mauron85-background-geolocation-common:mergePreoreoDebugAssets
:react-native-mauron85-background-geolocation-common:mergePreoreoDebugProguardFiles UP-TO-DATE
:react-native-mauron85-background-geolocation-common:packagePreoreoDebugRenderscript UP-TO-DATE
:react-native-mauron85-background-geolocation-common:packagePreoreoDebugResources
:react-native-mauron85-background-geolocation-common:processPreoreoDebugJavaRes UP-TO-DATE
:react-native-mauron85-background-geolocation-common:transformResourcesWithMergeJavaResForPreoreoDebug
:react-native-mauron85-background-geolocation-common:transformClassesAndResourcesWithSyncLibJarsForPreoreoDebug
:react-native-mauron85-background-geolocation-common:mergePreoreoDebugJniLibFolders
:react-native-mauron85-background-geolocation-common:transformNative_libsWithMergeJniLibsForPreoreoDebug
:react-native-mauron85-background-geolocation-common:transformNative_libsWithSyncJniLibsForPreoreoDebug
:react-native-mauron85-background-geolocation-common:bundlePreoreoDebug
:react-native-mauron85-background-geolocation-common:checkPreoreoReleaseManifest
:react-native-mauron85-background-geolocation-common:preparePreoreoReleaseDependencies
:react-native-mauron85-background-geolocation-common:compilePreoreoReleaseAidl
:react-native-mauron85-background-geolocation-common:compilePreoreoReleaseNdk UP-TO-DATE
:react-native-mauron85-background-geolocation-common:copyPreoreoReleaseLint UP-TO-DATE
:react-native-mauron85-background-geolocation-common:compilePreoreoReleaseRenderscript
:react-native-mauron85-background-geolocation-common:generatePreoreoReleaseBuildConfig
:react-native-mauron85-background-geolocation-common:generatePreoreoReleaseResValues
:react-native-mauron85-background-geolocation-common:generatePreoreoReleaseResources
:react-native-mauron85-background-geolocation-common:mergePreoreoReleaseResources
:react-native-mauron85-background-geolocation-common:processPreoreoReleaseManifest
:react-native-mauron85-background-geolocation-common:processPreoreoReleaseResources
:react-native-mauron85-background-geolocation-common:generatePreoreoReleaseSources
:react-native-mauron85-background-geolocation-common:incrementalPreoreoReleaseJavaCompilationSafeguard
:react-native-mauron85-background-geolocation-common:compilePreoreoReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:react-native-mauron85-background-geolocation-common:extractPreoreoReleaseAnnotations
:react-native-mauron85-background-geolocation-common:mergePreoreoReleaseShaders
:react-native-mauron85-background-geolocation-common:compilePreoreoReleaseShaders
:react-native-mauron85-background-geolocation-common:generatePreoreoReleaseAssets
:react-native-mauron85-background-geolocation-common:mergePreoreoReleaseAssets
:react-native-mauron85-background-geolocation-common:mergePreoreoReleaseProguardFiles UP-TO-DATE
:react-native-mauron85-background-geolocation-common:packagePreoreoReleaseRenderscript UP-TO-DATE
:react-native-mauron85-background-geolocation-common:packagePreoreoReleaseResources
:react-native-mauron85-background-geolocation-common:processPreoreoReleaseJavaRes UP-TO-DATE
:react-native-mauron85-background-geolocation-common:transformResourcesWithMergeJavaResForPreoreoRelease
:react-native-mauron85-background-geolocation-common:transformClassesAndResourcesWithSyncLibJarsForPreoreoRelease
:react-native-mauron85-background-geolocation-common:mergePreoreoReleaseJniLibFolders
:react-native-mauron85-background-geolocation-common:transformNative_libsWithMergeJniLibsForPreoreoRelease
:react-native-mauron85-background-geolocation-common:transformNative_libsWithSyncJniLibsForPreoreoRelease
:react-native-mauron85-background-geolocation-common:bundlePreoreoRelease
:react-native-mauron85-background-geolocation:prepareAndroidArchLifecycleRuntime100Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportAnimatedVectorDrawable2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportAppcompatV72610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportCompat2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportCoreUi2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportCoreUtils2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportFragment2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportMediaCompat2610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportV42610Library
:react-native-mauron85-background-geolocation:prepareComAndroidSupportSupportVectorDrawable2610Library
:react-native-mauron85-background-geolocation:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoDrawee130Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoFbcore130Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoFresco130Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoImagepipeline130Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoImagepipelineBase130Library
:react-native-mauron85-background-geolocation:prepareComFacebookFrescoImagepipelineOkhttp3130Library
:react-native-mauron85-background-geolocation:prepareComFacebookReactReactNative0554Library
:react-native-mauron85-background-geolocation:prepareComFacebookSoloaderSoloader010Library
:react-native-mauron85-background-geolocation:prepareComGithubTony19ApktoolLib1445Library
:react-native-mauron85-background-geolocation:prepareComGithubTony19LogbackAndroid1119Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesBase1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesBasement1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesLocation1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesLocationLicense1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesTasks1180Library
:react-native-mauron85-background-geolocation:prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library
:react-native-mauron85-background-geolocation:prepareComIntentfilterAndroidPermissions016Library
:react-native-mauron85-background-geolocation:prepareOrgWebkitAndroidJscR174650Library
:react-native-mauron85-background-geolocation:prepareSafeGoDemoReactNativeMauron85BackgroundGeolocationCommonUnspecifiedPreoreoReleaseLibrary
:react-native-mauron85-background-geolocation:prepareReleaseDependencies
:react-native-mauron85-background-geolocation:compileReleaseAidl
:react-native-mauron85-background-geolocation:compileReleaseNdk UP-TO-DATE
:react-native-mauron85-background-geolocation:compileLint
:react-native-mauron85-background-geolocation:copyReleaseLint UP-TO-DATE
:react-native-mauron85-background-geolocation:compileReleaseRenderscript
:react-native-mauron85-background-geolocation:generateReleaseBuildConfig
:react-native-mauron85-background-geolocation:generateReleaseResValues
:react-native-mauron85-background-geolocation:generateReleaseResources
:react-native-mauron85-background-geolocation:mergeReleaseResources
:react-native-mauron85-background-geolocation:processReleaseManifest
:react-native-mauron85-background-geolocation:processReleaseResources
:react-native-mauron85-background-geolocation:generateReleaseSources
:react-native-mauron85-background-geolocation:incrementalReleaseJavaCompilationSafeguard
:react-native-mauron85-background-geolocation:compileReleaseJavaWithJavac
:react-native-mauron85-background-geolocation:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
:react-native-mauron85-background-geolocation:extractReleaseAnnotations
:react-native-mauron85-background-geolocation:mergeReleaseShaders
:react-native-mauron85-background-geolocation:compileReleaseShaders
:react-native-mauron85-background-geolocation:generateReleaseAssets
:react-native-mauron85-background-geolocation:mergeReleaseAssets
:react-native-mauron85-background-geolocation:mergeReleaseProguardFiles UP-TO-DATE
:react-native-mauron85-background-geolocation:packageReleaseRenderscript UP-TO-DATE
:react-native-mauron85-background-geolocation:packageReleaseResources
:react-native-mauron85-background-geolocation:processReleaseJavaRes UP-TO-DATE
:react-native-mauron85-background-geolocation:transformResourcesWithMergeJavaResForRelease
:react-native-mauron85-background-geolocation:transformClassesAndResourcesWithSyncLibJarsForRelease
:react-native-mauron85-background-geolocation:mergeReleaseJniLibFolders
:react-native-mauron85-background-geolocation:transformNative_libsWithMergeJniLibsForRelease
:react-native-mauron85-background-geolocation:transformNative_libsWithSyncJniLibsForRelease
:react-native-mauron85-background-geolocation:bundleRelease
:app:prepareAndroidArchLifecycleRuntime100Library
:app:prepareComAndroidSupportAnimatedVectorDrawable2610Library
:app:prepareComAndroidSupportAppcompatV72610Library
:app:prepareComAndroidSupportSupportCompat2610Library
:app:prepareComAndroidSupportSupportCoreUi2610Library
:app:prepareComAndroidSupportSupportCoreUtils2610Library
:app:prepareComAndroidSupportSupportFragment2610Library
:app:prepareComAndroidSupportSupportMediaCompat2610Library
:app:prepareComAndroidSupportSupportV42610Library
:app:prepareComAndroidSupportSupportVectorDrawable2610Library
:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library
:app:prepareComFacebookFrescoDrawee130Library
:app:prepareComFacebookFrescoFbcore130Library
:app:prepareComFacebookFrescoFresco130Library
:app:prepareComFacebookFrescoImagepipeline130Library
:app:prepareComFacebookFrescoImagepipelineBase130Library
:app:prepareComFacebookFrescoImagepipelineOkhttp3130Library
:app:prepareComFacebookReactReactNative0554Library
:app:prepareComFacebookSoloaderSoloader010Library
:app:prepareComGithubTony19ApktoolLib1445Library
:app:prepareComGithubTony19LogbackAndroid1119Library
:app:prepareComGoogleAndroidGmsPlayServicesBase1180Library
:app:prepareComGoogleAndroidGmsPlayServicesBaseLicense1180Library
:app:prepareComGoogleAndroidGmsPlayServicesBasement1180Library
:app:prepareComGoogleAndroidGmsPlayServicesBasementLicense1180Library
:app:prepareComGoogleAndroidGmsPlayServicesGcm1180Library
:app:prepareComGoogleAndroidGmsPlayServicesGcmLicense1180Library
:app:prepareComGoogleAndroidGmsPlayServicesIid1180Library
:app:prepareComGoogleAndroidGmsPlayServicesIidLicense1180Library
:app:prepareComGoogleAndroidGmsPlayServicesLocation1180Library
:app:prepareComGoogleAndroidGmsPlayServicesLocationLicense1180Library
:app:prepareComGoogleAndroidGmsPlayServicesTasks1180Library
:app:prepareComGoogleAndroidGmsPlayServicesTasksLicense1180Library
:app:prepareComIntentfilterAndroidPermissions016Library
:app:prepareOrgWebkitAndroidJscR174650Library
:app:prepareSafeGoDemoReactNativeDeviceInfoUnspecifiedLibrary
:app:prepareSafeGoDemoReactNativeMauron85BackgroundGeolocationCommonUnspecifiedPreoreoReleaseLibrary
:app:prepareSafeGoDemoReactNativeMauron85BackgroundGeolocationUnspecifiedLibrary
:app:prepareReleaseDependencies
:app:compileReleaseAidl
:app:compileReleaseRenderscript
:app:generateReleaseBuildConfig
:app:mergeReleaseShaders
:app:compileReleaseShaders
:app:generateReleaseAssets
:app:mergeReleaseAssets
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources
:app:bundleReleaseJsAndAssets
Scanning folders for symlinks in /Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules (13ms)
Scanning folders for symlinks in /Users/Chathu/Workspace/SafeGo/SafeGoDemo/node_modules (14ms)
Loading dependency graph, done.
warning: the transform cache was reset.
bundle: Writing bundle output to: /Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/assets/release/index.android.bundle
bundle: Done writing bundle output
:app:processReleaseManifest
:app:processReleaseResources
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr'android:keyboardNavigationCluster'.
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
/Users/Chathu/Workspace/SafeGo/SafeGoDemo/android/app/build/intermediates/res/merged/release/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
:app:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 48.164 secs
error Command failed with exit code 1.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.
I had the same issue, please resolve it fast
When Run app it so this and you close this without solve.
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':@mauron85_react-native-background-geolocation-common:compileDebugJavaWithJavac'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:151)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:148)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:141)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionStateTaskExecuter.execute(ResolveBeforeExecutionStateTaskExecuter.java:75)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:108)
at org.gradle.api.internal.tasks.execution.ResolveBeforeExecutionOutputsTaskExecuter.execute(ResolveBeforeExecutionOutputsTaskExecuter.java:67)
at org.gradle.api.internal.tasks.execution.ResolveAfterPreviousExecutionStateTaskExecuter.execute(ResolveAfterPreviousExecutionStateTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:94)
at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:95)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:73)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:745)
+1
use jetifier
npm install --save-dev jetifier
npx jetify
and run your app
npx react-native run-android
Most helpful comment
use jetifier
npm install --save-dev jetifier
npx jetify
and run your app
npx react-native run-android