相关疑难解决方法(0)

在React Native中更改应用程序名称

我正在试图弄清楚如何更改ReactNative应用程序名称.我设备上安装的APK只是"App",带有Android图标.我怎么能改变这个?

我已经尝试更改package.json并重新运行react-native upgrade但它没有更新AndroidManifest.xml

react-native

54
推荐指数
12
解决办法
5万
查看次数

在此版本中使用了不推荐使用的Gradle功能,使其与Gradle 5.0不兼容

我有一个gradle FAILURE:

..."Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0."
Run Code Online (Sandbox Code Playgroud)

案例描述:

  • 附加到项目代码库的下一个库:

APP/biuld.gradle

    //(Required) Writing and executing Unit Tests on the JUnit Platform 
testImplementation "org.junit.jupiter:junit-jupiter-api:5.2.0"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.2.0"
    // (Optional) If you need "Parameterized Tests"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.2.0"
    // (Optional) If you also have JUnit 4-based tests
testImplementation "junit:junit:4.12"
testRuntimeOnly "org.junit.vintage:junit-vintage-engine:5.2.0"

testImplementation "io.mockk:mockk:1.8.5"
Run Code Online (Sandbox Code Playgroud)
  • 更新了gradle-wrapper.properties

    distributionUrl = https .... gradle- 4.4-all .zip to 4.7-all

  • 毕竟那个gradle成功了

  • 创造了测试calss

    @TestInstance(TestInstance.Lifecycle.PER_CLASS)
      class TestClass {
    
      @Test
      internal fun testName() {
        Assert.assertEquals(2, …
    Run Code Online (Sandbox Code Playgroud)

android unit-testing gradle kotlin junit5

29
推荐指数
12
解决办法
7万
查看次数

React Native:Java 堆空间

我目前正在按照doc使用 React Native 构建我的 Android APK 。

我收到这个错误:

./gradlew bundleRelease
WARNING:: Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.
This repository is deprecated and it will be shut down in the future.
See http://developer.android.com/r/tools/jcenter-end-of-service for more information.
Currently detected usages in: project ':react-native-async-storage_async-storage', project ':react-native-camera', project ':react-native-pager-view', ...
> Task :app:signReleaseBundle FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:signReleaseBundle'.
> …
Run Code Online (Sandbox Code Playgroud)

react-native

9
推荐指数
1
解决办法
9894
查看次数

标签 统计

react-native ×2

android ×1

gradle ×1

junit5 ×1

kotlin ×1

unit-testing ×1