Fatal error during build
Opened this issue · 5 comments
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'
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.
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 .
@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
.....
}
}
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
...
}
}
@dj100gr Hi, are you still facing the issue in Android ?
We are still faced with the probable android described above.