You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to create a release build for my app via the terminal, the process quits with an exception.
JS server already running.
Building and installing the app on the device (cd android && ./gradlew installRelease)...
> Configure project :app
WARNING: Configuration 'compile' is obsolete and has been replaced with '
<img width="335" alt="screenshot 2018-12-11 at 10 14 05" src="https://user-images.githubusercontent.com/23400302/49790032-95992f00-fd2d-11e8-9bc6-08a181303f32.png">
implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :rn-fetch-blob
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :react-native-onesignal
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
> Configure project :react-native-intercom
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
> Configure project :react-native-audio
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
Download https://jcenter.bintray.com/com/facebook/react/react-native/0.20.1/react-native-0.20.1.aar
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Loading dependency graph, done.
bundle: Writing bundle output to: /Users/timkuilman/brthrs/Zuidema/YouTalk/android/app/build/generated/assets/react/release/index.android.bundle
bundle: Done writing bundle output
no such scale
Error: no such scale
at getAndroidAssetSuffix (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/assetPathUtils.js:34:9)
at Object.getAndroidResourceFolderName (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/assetPathUtils.js:52:16)
at getAssetDestPathAndroid (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/getAssetDestPathAndroid.js:19:40)
at asset.scales.forEach (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/saveAssets.js:39:42)
at Array.forEach (<anonymous>)
at assets.forEach.asset (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/saveAssets.js:34:18)
at Array.forEach (<anonymous>)
at saveAssets (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/saveAssets.js:30:10)
at buildBundle (/Users/timkuilman/brthrs/Zuidema/YouTalk/node_modules/react-native/local-cli/bundle/buildBundle.js:71:18)
at process._tickCallback (internal/process/next_tick.js:68:7)
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:bundleReleaseJsAndAssets'.
> Process 'command 'node'' finished with non-zero exit value 1
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 51s
26 actionable tasks: 20 executed, 6 up-to-date
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
What I understand of it is that there is something wrong with the assets I'm using in the native Android part of the app. I generated the icons with Android Studio. When I was following an alternative route I used yo rn:toolbox to generate the icons. This leads to the same error.
The text was updated successfully, but these errors were encountered:
Hello there 👋 this issue doesn't have a repro (which means, a react-native init-ed project with the minimal changes that leads to creating the same issue you are reporting). Unfortunately, I have no way of helping you in a meaningful way – there is no easy way for me to recreate the situation and check that the issue reported is still there when changing the code.
Because of this, we are going to close this issue - but if a repro is shared, we are happy to reopen it 🤗
I had a similar issue. After adding some additional debug I got : error no such scale, scale : 3.5
I had an image asset that wasn't scaled to a react-native supported scale. Any image file ending in @3.5x I down-sampled to by 3/3.5 and renamed to @3x. This resolved the issue for me. That said image quality may slightly suffer on larger geometry devices.
Environment
Run
react-native info
in your terminal and paste its contents here.Description
When I try to create a release build for my app via the terminal, the process quits with an exception.
What I understand of it is that there is something wrong with the assets I'm using in the native Android part of the app. I generated the icons with Android Studio. When I was following an alternative route I used yo rn:toolbox to generate the icons. This leads to the same error.
The text was updated successfully, but these errors were encountered: