react-native run-anroid 在sdk目录前多了一个?号



  • FAILURE: Build failed with an exception.

    • Where:
      Build file 'E:\WorkFolder\Ract\MyProject\android\app\build.gradle' line: 69

    • What went wrong:
      A problem occurred evaluating project ':app'.

    #####多了一个?号

    Could not normalize path for file 'E:\WorkFolder\Ract\MyProject\android\app?E
    :\Android\Android-SDK\tools\proguard\proguard-android.txt'.

    • Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug
      option to get more log output.

    SDK目录
    ‪E:\Android\Android-SDK
    gradle第 66 -71行
    buildTypes {
    release {
    minifyEnabled false // Set this to true to enable Proguard
    proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
    }