CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Java/jdk1.8.0_152\bin\java.exe -classpath "D:\MyWorkSoftwareFolder\Unity2017.4.29f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.6.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"

stderr[

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'gradleOut'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not download guava.jar (com.google.guava:guava:23.0)
      > Could not get resource 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/google/guava/guava/23.0/guava-23.0.jar'.
            > Remote host closed connection during handshake
   > Could not download gson.jar (com.google.code.gson:gson:2.8.0)
      > Could not get resource 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/google/code/gson/gson/2.8.0/gson-2.8.0.jar'.
            > Remote host closed connection during handshake
   > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.5.2)
      > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar'.
         > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar'.
            > Connection reset
   > Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.4.5)
      > Could not get resource 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar'.
         > Could not GET 'https://jcenter.bintray.com/org/apache/httpcomponents/httpcore/4.4.5/httpcore-4.4.5.jar'.
            > Remote host closed connection during handshake
   > Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.2.0)
      > Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.jar'.
         > Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-reflect/1.2.0/kotlin-reflect-1.2.0.jar'.
            > Remote host closed connection during handshake
   > Could not download proguard-base.jar (net.sf.proguard:proguard-base:6.0.3)
      > Could not get resource 'https://jcenter.bintray.com/net/sf/proguard/proguard-base/6.0.3/proguard-base-6.0.3.jar'.
         > Could not GET 'https://jcenter.bintray.com/net/sf/proguard/proguard-base/6.0.3/proguard-base-6.0.3.jar'.
            > Remote host closed connection during handshake
   > Could not download auto-value.jar (com.google.auto.value:auto-value:1.5.2)
      > Could not get resource 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/google/auto/value/auto-value/1.5.2/auto-value-1.5.2.jar'.
            > Remote host closed connection during handshake
   > Could not download protobuf-java.jar (com.google.protobuf:protobuf-java:3.4.0)
      > Could not get resource 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/google/protobuf/protobuf-java/3.4.0/protobuf-java-3.4.0.jar'.
            > Connection reset
   > Could not download jdom2.jar (org.jdom:jdom2:2.0.6)
      > Could not get resource 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar'.
         > Could not GET 'https://jcenter.bintray.com/org/jdom/jdom2/2.0.6/jdom2-2.0.6.jar'.
            > Remote host closed connection during handshake
   > Could not download commons-codec.jar (commons-codec:commons-codec:1.9)
      > Could not get resource 'https://jcenter.bintray.com/commons-codec/commons-codec/1.9/commons-codec-1.9.jar'.
         > Could not GET 'https://jcenter.bintray.com/commons-codec/commons-codec/1.9/commons-codec-1.9.jar'.
            > Remote host closed connection during handshake
   > Could not download jaxb-runtime.jar (org.glassfish.jaxb:jaxb-runtime:2.2.11)
      > Could not get resource 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar'.
         > Could not GET 'https://jcenter.bintray.com/org/glassfish/jaxb/jaxb-runtime/2.2.11/jaxb-runtime-2.2.11.jar'.
            > Remote host closed connection during handshake
   > Could not download FastInfoset.jar (com.sun.xml.fastinfoset:FastInfoset:1.2.13)
      > Could not get resource 'https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.jar'.
         > Could not GET 'https://jcenter.bintray.com/com/sun/xml/fastinfoset/FastInfoset/1.2.13/FastInfoset-1.2.13.jar'.
            > Remote host closed connection during handshake

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 2m 21s
]
stdout[

]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
解决方法:BuildSetting 里的BuildSystem Gradle 修改成Internal

Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$attr;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$dimen;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$drawable;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$id;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$layout;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$menu;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$string;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R$style;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/mi/san/R;
解决办法,导出jar的时候,只选src, 把其他都勾掉,特别是gen

然后放到bin里

IOException: Temp\StagingArea\libs\x86\libmono.so already exists
System.IO.File.Copy (System.String sourceFileName, System.String destFileName, Boolean overwrite) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:115)
UnityEditor.FileUtil.UnityFileCopy (System.String from, System.String to, Boolean overwrite) (at C:/buildslave/unity/build/Editor/Mono/FileUtil.cs:207)
UnityEditor.FileUtil.UnityFileCopy (System.String from, System.String to) (at C:/buildslave/unity/build/Editor/Mono/FileUtil.cs:239)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareNativePlugin (System.String pluginTargetCPU, System.String assetPath, AndroidTargetDevice targetDevice, BuildTarget buildTarget, System.String stagingArea)
UnityEditor.Android.PostProcessAndroidPlayer.ProcessPlugin (System.String pluginPath, System.String pluginsFolder, System.String pluginTargetCPU, System.String aarFolder, AndroidTargetDevice targetDevice, BuildTarget buildTarget, System.String stagingArea)
UnityEditor.Android.PostProcessAndroidPlayer.PreparePlugins (AndroidTargetDevice targetDevice, BuildTarget buildTarget, System.String stagingArea, System.String targetLibrariesFolder)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
解决办法,把自动生成的libs文件夹里的armeabi-v7a 和x86,不要copy到unity工程里。

 

CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.

解决方法:
First :exported jar file from eclipse ,only include src and res folder . Then put this jar file into Plugins/Android/bin directory.
1、清理项目中的文件夹Temp\StagingArea
2、重启Unity
3、重启电脑

Import-Existing Projects into Workspace-Import Projects 没有工程 
解决方法:
eclipse中把没有.classpath和.project文件的工程导入的方式如下:
方法1:最直接的操作,可以把其它项目的.project, .classpath文件拷贝过来,修改相应的地方则可。
1).project文件只需要修改AboxTVExchange这个项目名称则可
2) .classpath文件通常不用改,内容如下:
<?xml version="1.0" encoding="UTF-8"?>






kind= "... "是指这个目录在project中的类型。kind= "src "为源文件目录,
这个目录下的文件会被编译器编译. kind= "output "是java文件编译输出
目录,src目录下的文件会编译到这个目录下。
当修改项目属性-> java build path时这个文件会被自动修改
方法2:将源码包移到非workspace目录下,然后new -> android project -> create project from exist source
添加写 工程名称则可
注意如果不移到非workspace目录下, 出现如下错误信息:
Invalid project description
------>detail: ->>> xxxx(project path) overlaps the location of another project: 'xxxx'
eclipse插件在创建项目的时候需要在workspace目录下创建一个同名的目录。
但发现workspace目录下已存在对应的目录时,就会报上面的处错误信息了

The project was not built since its build path is incomplete. Cannot find the class file for org.apache.http.Header. Fix the build path then try building this project
解决方法:If you are compiling against Android 6.0 (SDK 23), you need to include org.apache.http.legacy library.

In Android Studio add
 android {useLibrary 'org.apache.http.legacy'}
to build.gradle.
In Eclipse copy org.apache.http.legacy.jar from AndroidSDK/platforms/android-23/optional to libs folder.

stderr[
AndroidManifest.xml:4: error: No resource identifier found for attribute 'isGame' in package 'android'
AndroidManifest.xml:4: error: No resource identifier found for attribute 'banner' in package 'android'
]
解决方法:准备更新SDK Manager 1、修改host 203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com 2、Android SDK Manager  Tools - Options : android-mirror.bugly.qq.com:8080  Make sue to select: Force https://... sources to be fetched using http://... 

Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused

解决方法:

1、Go to Internet Explorer, into options -> connections -> Lan settings. There should be an automatic config script option, copy the url, paste it into a browser, this downloads the config file, opened the file up in notepad and there will be a proxy address and a port number in there like 192.234.10.23:88 paste the address into the proxy field and the port (88) into the port field in the Android SDK manager Tools -> Options dialog.

2、GoTo Tools -> Options in SDK Manager. Check https to force to http and try.

 

android-mirror.bugly.qq.com  8080   

 Make sue to select: Force https://... sources to be fetched using http://...   enable Preview Tools


DirectoryNotFoundException: Could not find a part of the path "C:\Users\Public\Documents\Unity Projects\Achievement system\Library\UnityAssemblies\version.txt". System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292) System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/StreamWriter.cs:124) System.IO.StreamWriter..ctor (System.String path, Boolean append) (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) System.IO.File.CreateText (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:159) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.CreateVersionFile (System.String[] assemblies) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.DeployUnityAssemblies (SyntaxTree.VisualStudio.Unity.Bridge.ProjectSystem.UnitySolution solution) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.GenerateProject () SyntaxTree.VisualStudio.Unity.Bridge.Project+<>c__DisplayClass4.b__3 () UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:264)

 

解决方法:

 

1、So I created it manually by creating the UnityAssemblies folder and a blank text file named version.txt inside it... and bam it worked perfectly    

2、  This happens when your project has no scripts and wasnt started at least 1 time, only then that folder and file is created  

 

服务器端用c++写md5算法, 提示签名认证失败, 把md5生成的16进制要小写。

 



使用Eclipse编辑文件经常出现中文乱码或者文件中有中文不能保存的问题,Eclipse提供了灵活的设置文件编码格式的选项,我们可以通过设置编码 格式解决乱码问题。在Eclipse可以从几个层面设置编码格式:Workspace、Project、Content Type、File 
本文以Eclipse 3.3(英文)为例加以说明: 
1. 设置Workspace的编码格式: 
Windows->Preferences... 打开"首选项"窗口,点击左侧导航树到General->Workspace,在右侧视图中找到“Text file encoding”选项设置,一种是默认(Default),另一种是从下拉列表中选择(Other)。Eclipse Workspace默认的编码方式是操作系统的编码格式,这跟操作系统的设置有关系;另外我们可以选择Other单选按钮,然后从按钮右侧的下拉列表中选 择需要的编码格式(GBK、ISO-8859-1、UTF-16、UFT-16 etc.)。 
2. 设置Project的编码格式: 
在 Workspace中新建的项目默认继承Workspace的编码设置,我们也可以单独更改某个项目的编码格式。右键点击工程,选择 Properties,打开项目属性设置窗口,左侧导航树选择Resource,在右侧视图中找到“Text file encoding”,两种设置项目的编码格式,默认选中的是“Inherited from container (XXX)”(注:XXX为Workspace设置的编码),我们也可以选择其他的编码格式,设置方式同Workspace。 
3. 设置Content Type的编码格式: 
有 时我们想使整个Workspace某种类型的文件保持同一种编码格式,这就需要用到Content Type设置来达到目的,具体方式如下:Windows->Preferences...打开"首选项"窗口,左侧导航树选择 General->Content Types,在右侧视图中选择Text->Java Source File,在最下侧有Default encoding输入框,手动输入编码格式,点击Update按钮使设置生效(切记啊!)。有两点需要注意一下: 
a. 这个设置使Workspace所有项目下的相同类型的文件有相同的编码格式,改变项目的编码设置不影响项目中文件类型的编码设置; 
b. Default encoding是手动输入的,输入的编码名称要准确,否则在打开此类型文件时会显示Unsupported Character Encoding。 
4. 设置File的编码格式: 
我 们还可以单独设置某个文件的编码格式,一种是通过在文件中设置编码格(如:'charset=UTF-8'),还可以通过文件属性设置。右键点击某一文 件,选择Properties,打开文件属性设置对话框,右侧导航树选择Resource,在右侧视图中通过“Text file encoding”选择设置文件的编码格式。

 

The project was not built since its build path is incomplete. Cannot find the class file for org.apache.http.Header. Fix the build path then try building this project
解决方法:If you are compiling against Android 6.0 (SDK 23), you need to include org.apache.http.legacy library.


In Android Studio add
 android {useLibrary 'org.apache.http.legacy'}
to build.gradle.
In Eclipse copy org.apache.http.legacy.jar from AndroidSDK/platforms/android-23/optional to libs folder.






stderr[
AndroidManifest.xml:4: error: No resource identifier found for attribute 'isGame' in package 'android'
AndroidManifest.xml:4: error: No resource identifier found for attribute 'banner' in package 'android'
]
解决方法:准备更新SDK Manager 1、修改host 203.208.46.146 dl.google.com
203.208.46.146 dl-ssl.google.com 2、Android SDK Manager  Tools - Options : android-mirror.bugly.qq.com:8080  Make sue to select: Force https://... sources to be fetched using http://... 




Failed to fetch URL https://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused Failed to fetch URL http://dl-ssl.google.com/android/repository/addons_list-1.xml, reason: Connection to refused
解决方法:1、Go to Internet Explorer, into options -> connections -> Lan settings. There should be an automatic config script option, copy the url, paste it into a browser, this downloads the config file, opened the file up in notepad and there will be a proxy address and a port number in there like 192.234.10.23:88 paste the address into the proxy field and the port (88) into the port field in the Android SDK manager Tools -> Options dialog.
2、GoTo Tools -> Options in SDK Manager. Check https to force to http and try.




DirectoryNotFoundException: Could not find a part of the path "C:\Users\Public\Documents\Unity Projects\Achievement system\Library\UnityAssemblies\version.txt". System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:292) System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare) System.IO.StreamWriter..ctor (System.String path, Boolean append, System.Text.Encoding encoding, Int32 bufferSize) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/StreamWriter.cs:124) System.IO.StreamWriter..ctor (System.String path, Boolean append) (wrapper remoting-invoke-with-check) System.IO.StreamWriter:.ctor (string,bool) System.IO.File.CreateText (System.String path) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/File.cs:159) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.CreateVersionFile (System.String[] assemblies) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.DeployUnityAssemblies (SyntaxTree.VisualStudio.Unity.Bridge.ProjectSystem.UnitySolution solution) SyntaxTree.VisualStudio.Unity.Bridge.ProjectFilesGenerator.GenerateProject () SyntaxTree.VisualStudio.Unity.Bridge.Project+<>c__DisplayClass4.b__3 () UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorApplicationBindings.gen.cs:264)
解决方法:1、So I created it manually by creating the UnityAssemblies folder and a blank text file named version.txt inside it... and bam it worked perfectly    2、  This happens when your project has no scripts and wasnt started at least 1 time, only then that folder and file is created  










CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\MyJobSoftwareFolder\AndroidJavaTool\AndroidSDK\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/MyJobSoftwareFolder/AndroidJavaTool/AndroidSDK\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.Company.ProductName -S "C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res"


stderr[
C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml:3: note: removing attribute http://schemas.android.com/apk/res/android:showAsAction from
C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml: note: using v11 attributes; synthesizing resource com.example.unitytci:menu/main for configuration v11.
AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'label' with value '@string/tci_app_name').


AndroidManifest.xml:23: error: Error: No resource found that matches the given name (at 'label' with value '@string/tci_app_name').


]
stdout[
Configurations:
 (default)
 v11
 v14
 mdpi-v4
 hdpi-v4
 xhdpi-v4
 xxhdpi-v4
 sw600dp-v13
 sw720dp-land-v13


Files:
  drawable\ic_launcher.png
    Src: (mdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
    Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
    Src: (xhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
    Src: (xxhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
  drawable\tcisdk_splash_1.jpg
    Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg
  layout\activity_main.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml
  menu\main.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml
  values\dimens.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\dimens.xml
    Src: (sw600dp-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw600dp\dimens.xml
    Src: (sw720dp-land-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw720dp-land\dimens.xml
  values\strings.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\strings.xml
  values\styles.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\styles.xml
    Src: (v11) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v11\styles.xml
    Src: (v14) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v14\styles.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml


Resource Dirs:
  Type drawable
    drawable\ic_launcher.png
      Src: (mdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
      Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
      Src: (xhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
      Src: (xxhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
    drawable\tcisdk_splash_1.jpg
      Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg
  Type layout
    layout\activity_main.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml
  Type menu
    menu\main.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml
  Type values
    values\dimens.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\dimens.xml
      Src: (sw600dp-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw600dp\dimens.xml
      Src: (sw720dp-land-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw720dp-land\dimens.xml
    values\strings.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\strings.xml
    values\styles.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\styles.xml
      Src: (v11) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v11\styles.xml
      Src: (v14) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v14\styles.xml
Including resources from package: D:\MyJobSoftwareFolder\AndroidJavaTool\AndroidSDK\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
    (processed image res\drawable\app_icon.png: 94% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png: 82% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png: 77% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png: 74% size of source)
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png: 72% size of source)
    (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated)
    (new resource id app_icon from drawable\app_icon.png #generated)
    (new resource id ic_launcher from mdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from hdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from xhdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from xxhdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id tcisdk_splash_1 from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg)
    (new resource id activity_main from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml)
    (new resource id main from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml)
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg)
UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
UnityEditor.HostView:OnGUI()














Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
D:\MyJobSoftwareFolder\AndroidJavaTool\AndroidSDK\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "D:/MyJobSoftwareFolder/AndroidJavaTool/AndroidSDK\platforms\android-23\android.jar" -F bin/resources.ap_ --extra-packages com.Company.ProductName -S "C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res"


stderr[
C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml:3: note: removing attribute http://schemas.android.com/apk/res/android:showAsAction from
C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml: note: using v11 attributes; synthesizing resource com.example.unitytci:menu/main for configuration v11.
AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'label' with value '@string/tci_app_name').


AndroidManifest.xml:23: error: Error: No resource found that matches the given name (at 'label' with value '@string/tci_app_name').


]
stdout[
Configurations:
 (default)
 v11
 v14
 mdpi-v4
 hdpi-v4
 xhdpi-v4
 xxhdpi-v4
 sw600dp-v13
 sw720dp-land-v13


Files:
  drawable\ic_launcher.png
    Src: (mdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
    Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
    Src: (xhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
    Src: (xxhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
  drawable\tcisdk_splash_1.jpg
    Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg
  layout\activity_main.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml
  menu\main.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml
  values\dimens.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\dimens.xml
    Src: (sw600dp-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw600dp\dimens.xml
    Src: (sw720dp-land-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw720dp-land\dimens.xml
  values\strings.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\strings.xml
  values\styles.xml
    Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\styles.xml
    Src: (v11) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v11\styles.xml
    Src: (v14) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v14\styles.xml
  AndroidManifest.xml
    Src: () AndroidManifest.xml


Resource Dirs:
  Type drawable
    drawable\ic_launcher.png
      Src: (mdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
      Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
      Src: (xhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
      Src: (xxhdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
    drawable\tcisdk_splash_1.jpg
      Src: (hdpi-v4) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg
  Type layout
    layout\activity_main.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml
  Type menu
    menu\main.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml
  Type values
    values\dimens.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\dimens.xml
      Src: (sw600dp-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw600dp\dimens.xml
      Src: (sw720dp-land-v13) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-sw720dp-land\dimens.xml
    values\strings.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\strings.xml
    values\styles.xml
      Src: () C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values\styles.xml
      Src: (v11) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v11\styles.xml
      Src: (v14) C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\values-v14\styles.xml
Including resources from package: D:\MyJobSoftwareFolder\AndroidJavaTool\AndroidSDK\platforms\android-23\android.jar
applyFileOverlay for drawable
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
    (processed image res\drawable\app_icon.png: 94% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-mdpi\ic_launcher.png: 82% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png
    (processed image res\drawable-xhdpi\app_banner.png: 93% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\ic_launcher.png: 77% size of source)
Processing image: C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xhdpi\ic_launcher.png: 74% size of source)
    (processed image C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-xxhdpi\ic_launcher.png: 72% size of source)
    (new resource id app_banner from xhdpi-v4\drawable\app_banner.png #generated)
    (new resource id app_icon from drawable\app_icon.png #generated)
    (new resource id ic_launcher from mdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from hdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from xhdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id ic_launcher from xxhdpi-v4\drawable\ic_launcher.png #generated)
    (new resource id tcisdk_splash_1 from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\drawable-hdpi\tcisdk_splash_1.jpg)
    (new resource id activity_main from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\layout\activity_main.xml)
    (new resource id main from C:\Users\Mt-129\Desktop\TechnologUnityTest\TCISDKTest\TCISDKProject\Temp\StagingArea\android-libraries\unity-android-resources\res\menu\main.xml)
]










warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
于是我把注意力放到第三方包可能加错的情况中。于是按照网上的说法,将包都重新加了一遍还是报错。
最后发现是debug证书的问题。我到C:\用户\《用户名》\.android\debug.keystore目录下看到


Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$attr;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$drawable;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$id;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$layout;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$string;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/appcoachs/unitysdkandroidproj/R$style;
7 errors; aborting
]


I solved as follows:
First :exported jar file from eclipse ,only include src and res folder . Then put this jar file into Plugins/Android/bin directory.




大家可以看到debug.keystore的日期是 2011-1-11,而今天是2012-1-13日,果然如网上所说,超过了一年,debug证书过期了。
于是我删掉这个文件,重新编译运行,果然没问题了,而此时 该目录又重新生成了debug.keystore,日期是今天。


如果你想重现这个问题,也很简单,必须clear工程,否则它不会再到该目录下装载证书,即使你把这个文件换成2010的也不会不错,而你clear后,
项目会重新装载证书,检测证书的有效期。希望对大家有所帮助。




stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/a$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/a$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/a$a;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/a;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/b;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/c;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/d;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/e;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/player/f;










<?xml version="1.0" encoding="utf-8"?>
    package="com.example.unitytci"
    android:versionCode="1"
    android:versionName="1.0" >


            android:minSdkVersion="8"
        android:targetSdkVersion="18" />


CommandInvokationFailure: Unable to convert classes into dex format. See the Console for details.
C:\Program Files\Java\jdk1.8.0_65\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="D:/MyJobSoftwareFolder/AndroidJavaTool/adt-bundle-windows-x86_64/sdk\tools" -Dfile.encoding=UTF8 -jar "D:\MyJobSoftwareFolder\Unity5.2.4\Unity\Editor\Data\PlaybackEngines\androidplayer/Tools\sdktools.jar" -


stderr[
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$4) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$5) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebChromeClient$6) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.H5PayActivity$MyWebViewClient$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$1$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$1$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$4$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$4$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$4) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$5$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$5) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$6$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$6$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.app.PayTask$6) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$1) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$10) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$11) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$12) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$13) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$14) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$2) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not target the modern .class file format. The recommended
solution is to recompile the class from source, using an up-to-date compiler
and without specifying any "-target" type options. The consequence of ignoring
this warning is that reflective operations on this class will incorrectly
indicate that it is *not* an inner class.
warning: Ignoring InnerClasses attribute for an anonymous inner class
(com.alipay.sdk.auth.AuthActivity$3) that doesn't come with an
associated EnclosingMethod attribute. This class was probably produced by a
compiler that did not ta

更多相关文章

  1. 【Android】volley网络框架的文件下载
  2. android 输出.txt 文本换行问题
  3. Android(安卓)SDK 目录和作用的分析详解
  4. Unity3D Android播放视频
  5. android HttpClient网络通信工具类基于XML
  6. Android(安卓)到ARM versatile PB板移植主要步骤
  7. Android设置角标提示
  8. osg for android 学习之九:相机
  9. NPM 和webpack 的基础使用

随机推荐

  1. android页面间传递对象
  2. Android(安卓)首页双击返回桌面
  3. Android动画效果学习
  4. Android(安卓)之 Gallery画廊用法
  5. android:开源AsyncHttpClient
  6. Android的简单组件总结
  7. Android(安卓)dumpsys cpuinfo 信息解读
  8. android 用代码设置margin属性,textView加
  9. Android软键盘之代码改变软键盘状态
  10. 【Android】【基础】获取屏幕宽高