gpt4 book ai didi

java - 团结 : CommandInvokationFailure: Failed to recompile android resource files

转载 作者:行者123 更新时间:2023-12-02 13:14:30 29 4
gpt4 key购买 nike

我是 Unity 新手。当尝试构建 android apk 时,我遇到编译错误。我更新了Unity(5.6),SDK(24),JDK(1.8.0)

Java 似乎有问题,但我不明白。

有人遇到过同样的问题吗?非常感谢。

CommandInvokationFailure: Failed to recompile android resource files.
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/javac -bootclasspath "/Users/kwij1/Desktop/Android SDK/platforms/android-24/android.jar" -d "/Users/kwij1/Sudokubykwij - 1702/Temp/StagingArea/bin/classes" -source 1.6 -target 1.6 -encoding UTF-8 "android/support/v4/Manifest.java" "android/support/v4/R.java" "com/SCGames/SudokuGold/Manifest.java" "com/SCGames/SudokuGold/R.java" "com/android/vending/billing/Manifest.java" "com/android/vending/billing/R.java" "com/area730/localnotif/Manifest.java" "com/area730/localnotif/R.java" "com/facebook/ads/Manifest.java" "com/facebook/ads/R.java" "com/google/android/gms/Manifest.java" "com/google/android/gms/R.java" "com/google/android/gms/ads/Manifest.java" "com/google/android/gms/ads/R.java" "com/google/android/gms/ads/impl/Manifest.java" "com/google/android/gms/ads/impl/R.java" "com/google/android/gms/auth/Manifest.java" "com/google/android/gms/auth/R.java" "com/google/android/gms/auth/api/Manifest.java" "com/google/android/gms/auth/api/R.java" "com/google/android/gms/base/Manifest.java" "com/google/android/gms/base/R.java" "com/google/android/gms/clearcut/Manifest.java" "com/google/android/gms/clearcut/R.java" "com/google/android/gms/drive/Manifest.java" "com/google/android/gms/drive/R.java" "com/google/android/gms/games/Manifest.java" "com/google/android/gms/games/R.java" "com/google/android/gms/gass/Manifest.java" "com/google/android/gms/gass/R.java" "com/google/android/gms/gcm/Manifest.java" "com/google/android/gms/gcm/R.java" "com/google/android/gms/iid/Manifest.java" "com/google/android/gms/iid/R.java" "com/google/android/gms/location/Manifest.java" "com/google/android/gms/location/R.java" "com/google/android/gms/nearby/Manifest.java" "com/google/android/gms/nearby/R.java" "com/google/android/gms/tasks/Manifest.java" "com/google/android/gms/tasks/R.java" "com/google/android/youtube/player/Manifest.java" "com/google/android/youtube/player/R.java" "com/google/example/games/mainlibproj/Manifest.java" "com/google/example/games/mainlibproj/R.java" "com/google/unity/Manifest.java" "com/google/unity/R.java" "com/onesignal/Manifest.java" "com/onesignal/R.java" "com/onesignal/onesignalsdk/Manifest.java" "com/onesignal/onesignalsdk/R.java" "com/pushok/test/Manifest.java" "com/pushok/test/R.java" "com/unity/purchasing/Manifest.java" "com/unity/purchasing/R.java" "com/unity/purchasing/amazon/Manifest.java" "com/unity/purchasing/amazon/R.java" "com/unity/purchasing/googleplay/Manifest.java" "com/unity/purchasing/googleplay/R.java" "com/unity/purchasing/samsung/Manifest.java" "com/unity/purchasing/samsung/R.java" "com/voxelbusters/utility/Manifest.java" "com/voxelbusters/utility/R.java"

stderr[
android/support/v4/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
android/support/v4/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
android/support/v4/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
android/support/v4/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
android/support/v4/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
android/support/v4/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/SCGames/SudokuGold/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/SCGames/SudokuGold/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/SCGames/SudokuGold/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/SCGames/SudokuGold/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/SCGames/SudokuGold/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/SCGames/SudokuGold/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/android/vending/billing/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/android/vending/billing/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/android/vending/billing/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/android/vending/billing/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/android/vending/billing/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/android/vending/billing/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/area730/localnotif/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/area730/localnotif/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/area730/localnotif/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/area730/localnotif/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/area730/localnotif/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/area730/localnotif/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/facebook/ads/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/facebook/ads/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/facebook/ads/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/facebook/ads/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/facebook/ads/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/facebook/ads/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/ads/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/ads/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/ads/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/ads/impl/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/impl/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/impl/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/ads/impl/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/ads/impl/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/ads/impl/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/auth/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/auth/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/auth/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/auth/api/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/api/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/api/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/auth/api/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/auth/api/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/auth/api/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/base/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/base/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/base/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/base/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/base/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/base/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/clearcut/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/clearcut/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/clearcut/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/clearcut/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/clearcut/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/clearcut/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/drive/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/drive/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
^
com/google/android/gms/drive/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/drive/R.java:115: error: underscores in literals are not supported in -source 1.6
public static final int 256_circle=0x7f020001;
^
(use -source 7 or higher to enable underscores in literals)
com/google/android/gms/drive/R.java:115: error: illegal underscore
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/drive/R.java:115: error: <identifier> expected
public static final int 256_circle=0x7f020001;
^
com/google/android/gms/games/R.java:114: error: <identifier> expected
public static final int 1=0x7f020000;
^
com/google/android/gms/games/R.java:114: error: illegal start of type
public static final int 1=0x7f020000;
<message truncated>

最佳答案

修复了 2 个阻止构建 apk 的问题:1. 多个Android支持库JAR(Facebook Audience Network中的一个)2.以数字开头的 Assets 谢谢

关于java - 团结 : CommandInvokationFailure: Failed to recompile android resource files,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43820581/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com