Android-React-native:输出:错误:找不到资源样式/Theme.AppCompat.Light.NoActionBar

时间:2019-02-28 17:14:55

标签: android react-native

有人可以帮助解决此问题吗?我一直在从事这个本机项目,尝试运行时突然收到此错误

Android资源链接失败   输出:错误:找不到资源样式/Theme.AppCompat.Light.NoActionBar(又名com.gp:style/Theme.AppCompat.Light.NoActionBar)。   错误:找不到资源样式/Theme.AppCompat.Light.Dialog(又名com.gp:style/Theme.AppCompat.Light.Dialog)。   错误:找不到资源样式/Theme.AppCompat.Light.Dialog(又名com.gp:style/Theme.AppCompat.Light.Dialog)。   错误:找不到资源样式/Theme.AppCompat.Light.Dialog(又名com.gp:style/Theme.AppCompat.Light.Dialog)。   错误:找不到资源样式/Theme.AppCompat.Light.Dialog(又名com.gp:style/Theme.AppCompat.Light.Dialog)。   错误:找不到资源样式/Theme.AppCompat.Light.NoActionBar(又名com.gp:style/Theme.AppCompat.Light.NoActionBar)。   C:\ react \ gp \ android \ app \ build \ intermediates \ incremental \ mergeReleaseResources \ merged.dir \ values \ values.xml:105:错误:样式属性'attr / windowActionBar(aka com.gp:attr/windowActionBar)'未找到。   错误:链接引用失败。

命令:C:\ Users \ Dd.gradle \ caches \ transforms-1 \ files-1.1 \ aapt2-3.2.1-4818971-windows.jar \ ffd21d5284a7af29d2ccd91cde565e5a \ aapt2-3.2.1-4818971-windows \ aapt2。 exe链接-I \           C:\ Users \ Dd \ AppData \ Local \ Android \ sdk \ platforms \ android-28 \ android.jar \            - 表现\           C:\ react \ gp \ android \ app \ build \ intermediates \ merged_manifests \ release \ processReleaseManifest \ merged \ AndroidManifest.xml \           -o \           C:\ react \ gp \ android \ app \ build \ intermediates \ processed_res \ release \ processReleaseResources \ out \ resources-release.ap_ \           -R \           @C:\ react \ gp \ android \ app \ build \ intermediates \ incremental \ processReleaseResources \ resources-list-for-resources-release.ap_.txt \           --auto-add-overlay \           --java \           C:\ react \ gp \ android \ app \ build \ Generated \ not_namespaced_r_class_sources \ release \ processReleaseResources \ r \           --custom-package \           com.gp \           -0 \           apk \           --output-text-symbols \           C:\ react \ gp \ android \ app \ build \ intermediates \ symbols \ release \ R.txt \           --no-version-vectors   守护程序:AAPT2 aapt2-3.2.1-4818971-windows守护程序#0   输出:错误:找不到资源样式/Theme.AppCompat.Light.NoActionBar(又名com.gp:style/Theme.AppCompat.Light.NoActionBar)。   错误:找不到资源样式/Theme.AppCompat.Light.Dialog(又名com.gp:style/Theme.AppCompat.Light.Dialog)。   C:\ Users \ Dd.gradle \ caches \ transforms-1 \ files-1.1 \ react-native-0.58.5.aar \ 2e0dcdd9748c262893e29283ff38db41 \ res \ values \ values.xml:105:5-114:11:AAPT:错误:找不到样式属性“ attr / windowActionBar(aka com.gp:attr/windowActionBar)”。

错误:链接引用失败。   命令:C:\ Users \ Dd.gradle \ caches \ transforms-1 \ files-1.1 \ aapt2-3.2.1-4818971-windows.jar \ ffd21d5284a7af29d2ccd91cde565e5a \ aapt2-3.2.1-4818971-windows \ aapt2.exe链接-一世\           C:\ Users \ Dd \ AppData \ Local \ Android \ sdk \ platforms \ android-28 \ android.jar \            - 表现\           C:\ react \ gp \ android \ app \ build \ intermediates \ merged_manifests \ release \ processReleaseManifest \ merged \ AndroidManifest.xml \           -o \           C:\ react \ gp \ android \ app \ build \ intermediates \ processed_res \ release \ processReleaseResources \ out \ resources-release.ap_ \           -R \           @C:\ react \ gp \ android \ app \ build \ intermediates \ incremental \ processReleaseResources \ resources-list-for-resources-release.ap_.txt \           --auto-add-overlay \           --java \           C:\ react \ gp \ android \ app \ build \ Generated \ not_namespaced_r_class_sources \ release \ processReleaseResources \ r \           --custom-package \           com.gp \           -0 \           apk \           --output-text-symbols \           C:\ react \ gp \ android \ app \ build \ intermediates \ symbols \ release \ R.txt \           --no-version-vectors   守护进程:AAPT2 aapt2-3.2.1-4818971-windows守护进程#0

0 个答案:

没有答案