Unity升级Android SDK遇到的问题

从Android 6.0的android sdk(ApiLevel 23) 升级到 Android 9.0的android sdk(ApiLevel 28)
编译的时候,提示

使用了未经检查或不安全的操作。 
注: 要了解详细信息,请使用 -Xlint:unchecked 重新编译

解决办法,在对应的java脚本中的函数上面添加

@SuppressWarnings({ "unchecked", "deprecation" })

@SuppressWarnings({ "unchecked", "deprecation" })
public static void Hello()
{
	//
}

然后又提示

Resource compilation failed! Failed to recompile android resource files. See the Console for details

这个是jdk版本与android sdk版本不一致的原因

你可能感兴趣的:(unity3D,java)