facebook twitter hatena line email

「Unity/多言語化/Androidのアプリ名」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(Assets/Plugins/Android/res was removedエラーが出る問題)
(Assets/Plugins/Android/res was removedエラーが出る問題)
行12: 行12:
 
  Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries" section of the Manual for more details.
 
  Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries" section of the Manual for more details.
  
#res内のmetaを削除して、
+
#Assets/Plugins/Androidの下にres.androidlibを作る
#resをzip化して、res.arrへリネームしたが、
+
#以下をres.androidlibの下に作る
 +
<pre>
 +
AndroidManifest.xml
 +
project.properties
 +
res
 +
</pre>
 +
AndroidManifest.xml
 +
<pre>
 +
<?xml version="1.0" encoding="utf-8"?>
 +
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
 +
          package="custom.android.res"
 +
          android:versionCode="1"
 +
          android:versionName="1.0">
 +
</manifest>
 +
</pre>
 +
project.properties
 +
<pre>
 +
target=android-9
 +
android.library=true
 +
</pre>
  
Failed to transform res-.aar (:res:) to match attributes {artifactType=android-classes-jar,
+
参考:https://kingmo.jp/kumonos/unity-2021lts-res-folda-build-error/
 
+
エラーになったので、未解決・・
+

2022年8月17日 (水) 03:44時点における版

Androidのアプリタイトルの多言語化対応方法

Assets/Plugins/Android/res/values-ja/strings.xml

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="app_name">タイトル1</string>
</resources>

Assets/Plugins/Android/res was removedエラーが出る問題

エラー詳細

Providing Android resources in Assets/Plugins/Android/res was removed, please move your resources to an AAR or an Android Library. See "AAR plug-ins and Android Libraries" section of the Manual for more details.
  1. Assets/Plugins/Androidの下にres.androidlibを作る
  2. 以下をres.androidlibの下に作る
AndroidManifest.xml
project.properties
res

AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="custom.android.res"
          android:versionCode="1"
          android:versionName="1.0">
</manifest>

project.properties

target=android-9
android.library=true

参考:https://kingmo.jp/kumonos/unity-2021lts-res-folda-build-error/