在运行反应态运行android
之后我得到了这个
JS server already running.
Building and installing the app on the device (cd android && gradlew.bat
installDebug)...
C:UsersDd.gradlecachestransforms-1files-1.1appcompat-v7-
28.0.0.aar5f8d067ae17f4050cbc3c86889ab0be8resvalues-v28values-
v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not
found.
c:reactdiagnosemeandroidappbuildintermediatesincrementalmergeDebugResourcesmerged.dirvalues-v28values-v28.xml:11: AAPT: error: resource
android:attr/dialogCornerRadius not found.
C:UsersDd.gradlecachestransforms-1files-1.1appcompat-v7-28.0.0.aar5f8d067ae17f4050cbc3c86889ab0be8resvaluesvalues.xml:1304:5-69: AAPT: error: resource android:attr/fontVariationSettings not found.
C:UsersDd.gradlecachestransforms-1files-1.1appcompat-v7-28.0.0.aar5f8d067ae17f4050cbc3c86889ab0be8resvaluesvalues.xml:1304:5-69: AAPT: error: resource android:attr/ttcIndex not found.
error: failed linking references.
FAILURE: Build failed with an exception.
* What went wrong:
执行任务失败':app:processDebugresources'。 无法处理资源,请参阅上面的AAPT输出。
* Try:
使用-stacktrace选项运行以获取堆栈跟踪。使用-Info或 - debug选项运行,以获取更多日志输出。运行 - 扫描以获得完整的见解。
* Get more help at https://help.gradle.org
构建在22秒内失败61个可操作的任务:执行1个,最新60无法在设备上安装应用程序,请阅读上面的错误以获取详细信息。确保您有一个Android模拟器运行或连接的设备并具有设置您的Android开发环境:https://facebook.github.io/reaeact-native/docs/getting-started.html
Command failed: gradlew.bat installDebug
Error: Command failed: gradlew.bat installDebug
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:13)
at runOnAllDevices (C:reactdiagnosemenode_modulesreact-nativelocal-clirunAndroidrunAndroid.js:299:19)
at buildAndRun (C:reactdiagnosemenode_modulesreact-nativelocal-clirunAndroidrunAndroid.js:135:12)
at isPackagerRunning.then.result (C:reactdiagnosemenode_modulesreact-nativelocal-clirunAndroidrunAndroid.js:65:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
这是因为您使用的是AppCompat-V7-28.0.0和不匹配的编译SDK版本(很可能27)。降级库以匹配您的SDK或升级您的SDK以匹配您的库。