我正在Arch Linux上使用Android Studio 3.0 Canary 3,并尝试制作一个小应用程序。在发布问题之前进行了一些研究,但我找到的解决方案都不适用于我。非常感谢任何帮助。
错误:任务“:app:mergeDebugResources”执行失败。 > 错误:java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.internal.aapt.AaptException:AAPT2编译失败: aapt2编译 -o / home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / res / merged / debug / home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged .dir / values / values.xml 问题: - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:244无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:245无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:283无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:309无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:310无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:312无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:313无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:314无效的dimen
错误:任务“:app:mergeDebugResources”执行失败。 > 错误:java.lang.RuntimeException:java.lang.RuntimeException:com.android.builder.internal.aapt.AaptException:AAPT2编译失败: aapt2编译 -o / home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / res / merged / debug / home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged .dir / values / values.xml 问题: - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:244无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:245无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:283无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:309无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:310无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:312无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:313无效的dimen - 错误:/ home / xhensi / AndroidStudioProjects / FindRestaurant / app / build / intermediates / incremental / mergeDebugResources / merged.dir / values / values.xml:314无效的dimen