Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue #56

Open
obsidianart opened this issue Feb 9, 2019 · 1 comment
Open

Build issue #56

obsidianart opened this issue Feb 9, 2019 · 1 comment

Comments

@obsidianart
Copy link

I had the following error

Execution failed for task ':react-native-directed-scrollview:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
  Output:  /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:7: error: resource android:attr/dialogCornerRadius not found.
  /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values-v28/values-v28.xml:11: error: resource android:attr/dialogCornerRadius not found.
  /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values/values.xml:957: error: resource android:attr/fontVariationSettings not found.
  /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/res/merged/release/values/values.xml:958: error: resource android:attr/ttcIndex not found.
  error: failed linking references.
  
  Command: /Users/obsidianart/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/24fc49a54beeb394af9f7efc15d0a12c/aapt2-3.2.1-4818971-osx/aapt2 link -I\
          /Users/obsidianart/Library/Android/sdk/platforms/android-26/android.jar\
          --manifest\
          /Users/obsidianart/HDD/GIT/imagzle/node_modules/react-native-directed-scrollview/android/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml\
          -o\
          /var/folders/zv/9q28yy151370p5m_h1nmzx5r0000gn/T/aapt-2196059786566862826-out\

and I was using build 27.0.3 (now I'm on 28).
I don't know what causes the error but I'm writing what fixed it for the next person:

  • open build.gradle inside the node_modules folder in this package
  • replace with the following at the top
android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

Since currently I'm not in a CI with this project I can change directly the package but if someone with more knowledge than me can explain how else it can be fixed I would really appreciate

@h2soheili
Copy link

debug build success but
fail in release
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-directed-scrollview": "git+https://github.com/chrisfisher/react-native-directed-scrollview.git"

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

No branches or pull requests

2 participants