Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Fatal error during build #8

Open
dj100gr opened this issue Jun 11, 2019 · 5 comments
Open

Fatal error during build #8

dj100gr opened this issue Jun 11, 2019 · 5 comments

Comments

@dj100gr
Copy link

dj100gr commented Jun 11, 2019

Android

While android app started at emulator normally, we receive build error when building APK file using

./gradlew assembleRelease

command.
We used that settings in our app settings

buildToolsVersion = "28.0.3"
minSdkVersion = 16
compileSdkVersion = 28
targetSdkVersion = 28

And receive that error:

Execution failed for task ':bmd-push-react-native:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  /Users/kolyvanov/prog/front/packages/app/node_modules/bmd-push-react-native/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/kolyvanov/prog/front/packages/app/node_modules/bmd-push-react-native/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/kolyvanov/prog/front/packages/app/node_modules/bmd-push-react-native/android/build/intermediates/res/merged/release/values/values.xml:2749: error: resource android:attr/fontVariationSettings not found.
  /Users/kolyvanov/prog/front/packages/app/node_modules/bmd-push-react-native/android/build/intermediates/res/merged/release/values/values.xml:2750: error: resource android:attr/ttcIndex not found.
  error: failed linking references.

IOS

We using env:

Mac OS Mojave 10.14.15
XCode 10.2.1
Cocoapods 1.7.1

When we tryed to used carthage update command in our ```ios`` folder we received that error:

Error: Multiple commands produce '/Users/kolyvanov/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/bms-clientsdk-swift-core/2.4.0/Build/Intermediates.noindex/ArchiveIntermediates/BMSCore watchOS/IntermediateBuildFilesPath/UninstalledProducts/watchos/BMSAnalyticsAPI.framework':
1) Target 'BMSAnalyticsAPI-iOS' has create directory command with output '/Users/kolyvanov/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/bms-clientsdk-swift-core/2.4.0/Build/Intermediates.noindex/ArchiveIntermediates/BMSCore watchOS/IntermediateBuildFilesPath/UninstalledProducts/watchos/BMSAnalyticsAPI.framework'
2) Target 'BMSAnalyticsAPI-watchOS' has create directory command with output '/Users/kolyvanov/Library/Caches/org.carthage.CarthageKit/DerivedData/10.2.1_10E1001/bms-clientsdk-swift-core/2.4.0/Build/Intermediates.noindex/ArchiveIntermediates/BMSCore watchOS/IntermediateBuildFilesPath/UninstalledProducts/watchos/BMSAnalyticsAPI.framework'
@AnanthaKrish
Copy link
Member

AnanthaKrish commented Jun 11, 2019

hi @dj100gr

For iOS use the Legacy build system in the Xcode. To change this , open the Xcode project from the ios folder. Then go to the File-> Project settings and change the build system to Legacy one.

Screenshot 2019-06-11 at 2 40 45 pm

Android issue happening because of the gradle issues I think. I am trying to find a solution for that. Will keep you updated regarding the same. Thank you .

@AnanthaKrish
Copy link
Member

AnanthaKrish commented Jun 12, 2019

@dj100gr For Android you can either build APK from the Android Studio OR make the following changes inside the build.gradle of bmd-push-react-native ,

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

    defaultConfig {
        .....
        targetSdkVersion 28
        .....
      }
}

@dj100gr
Copy link
Author

dj100gr commented Jun 24, 2019

When trying to compile IOS in "Legacy build system" mode, the same error as above is saved.

The described error when building an android apk is performed with build.gradle:

android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"
    defaultConfig {
        targetSdkVersion 28
        minSdkVersion 16
        targetSdkVersion 28
        ...
      }
}

@AnanthaKrish
Copy link
Member

@dj100gr Hi, are you still facing the issue in Android ?

@dj100gr
Copy link
Author

dj100gr commented Jul 5, 2019

We are still faced with the probable android described above.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants