質問編集履歴
3
エミュレータのログを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,6 +80,33 @@
|
|
80
80
|
ホーム長押し->壁紙->Live2DWallpaperで、アプリケーションは見つけることができましたが、以下のようになり、2Dモデルが表示されませんでした。
|
81
81
|

|
82
82
|
|
83
|
+
|
84
|
+
エミュレータのログは以下の通りです。
|
85
|
+
```
|
86
|
+
前略
|
87
|
+
2022-02-22 22:23:15.371 26752-26752/com.live2d.demo D/AndroidRuntime: Shutting down VM
|
88
|
+
2022-02-22 22:23:15.372 26752-26752/com.live2d.demo E/AndroidRuntime: FATAL EXCEPTION: main
|
89
|
+
Process: com.live2d.demo, PID: 26752
|
90
|
+
java.lang.UnsatisfiedLinkError: dlopen failed: library "libDemo.so" not found
|
91
|
+
at java.lang.Runtime.loadLibrary0(Runtime.java:1087)
|
92
|
+
at java.lang.Runtime.loadLibrary0(Runtime.java:1008)
|
93
|
+
at java.lang.System.loadLibrary(System.java:1664)
|
94
|
+
at com.live2d.demo.JniBridgeJava.<clinit>(JniBridgeJava.java:21)
|
95
|
+
at com.live2d.demo.JniBridgeJava.SetContext(JniBridgeJava.java:55)
|
96
|
+
at com.live2d.demo.LiveWallpaperService$Live2DWallpaperEngine.<init>(LiveWallpaperService.java:52)
|
97
|
+
at com.live2d.demo.LiveWallpaperService.onCreateEngine(LiveWallpaperService.java:29)
|
98
|
+
at android.service.wallpaper.WallpaperService$IWallpaperEngineWrapper.executeMessage(WallpaperService.java:1469)
|
99
|
+
at com.android.internal.os.HandlerCaller$MyHandler.handleMessage(HandlerCaller.java:44)
|
100
|
+
at android.os.Handler.dispatchMessage(Handler.java:106)
|
101
|
+
at android.os.Looper.loop(Looper.java:223)
|
102
|
+
at android.app.ActivityThread.main(ActivityThread.java:7656)
|
103
|
+
at java.lang.reflect.Method.invoke(Native Method)
|
104
|
+
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
|
105
|
+
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
|
106
|
+
2022-02-22 22:23:17.224 26752-26768/com.live2d.demo W/System: A resource failed to call close.
|
107
|
+
|
108
|
+
```
|
109
|
+
|
83
110
|
##### 実機をつないで起動
|
84
111
|
Android Studioで以下のエラーが出ました。スマホの壁紙一覧からアプリは見つけられませんでした。
|
85
112
|
```
|
2
エラーを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -120,7 +120,7 @@
|
|
120
120
|
add_library cannot create target "Demo" because another target with the
|
121
121
|
same name already exists. The existing target is a shared library created
|
122
122
|
in source directory
|
123
|
-
"C:/Users/
|
123
|
+
"C:/Users/{ユーザ名}/AndroidStudioProjects/CubismAndroidLiveWallpaper-master/FrameWork".
|
124
124
|
See documentation for policy CMP0002 for more details.
|
125
125
|
|
126
126
|
|
1
エミュレータの壁紙からアプリを起動した結果と、実機から起動しようとした結果を追記。タイトルを変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Android Studioで
|
1
|
+
Android StudioでLive2Dの壁紙のサンプルアプリを設定しようとしていますが、うまくいきません。
|
test
CHANGED
@@ -73,7 +73,66 @@
|
|
73
73
|
また後学のために、**intent-filterのactionとcategoryに与えられている値はプロジェクトのどこと対応しているのだけでも教えていただけると幸いです。**
|
74
74
|
|
75
75
|
|
76
|
+
## 質問修整
|
77
|
+
壁紙から起動できると教えていただいたので、エミュレータと実機の両方でやってみましたが、どちらもうまくいきませんでした。
|
78
|
+
|
79
|
+
##### エミュレータで起動
|
80
|
+
ホーム長押し->壁紙->Live2DWallpaperで、アプリケーションは見つけることができましたが、以下のようになり、2Dモデルが表示されませんでした。
|
81
|
+

|
82
|
+
|
83
|
+
##### 実機をつないで起動
|
84
|
+
Android Studioで以下のエラーが出ました。スマホの壁紙一覧からアプリは見つけられませんでした。
|
85
|
+
```
|
86
|
+
-- Detecting CXX compile features - done
|
87
|
+
-- Configuring incomplete, errors occurred!
|
88
|
+
See also "C:/Users/{ユーザ名}/AndroidStudioProjects/CubismAndroidLiveWallpaper-master/AndroidWallPaper/app/.cxx/cmake/debug/armeabi-v7a/CMakeFiles/CMakeOutput.log".
|
89
|
+
|
90
|
+
CMake Warning (dev) in CMakeLists.txt:
|
91
|
+
No project() command is present. The top-level CMakeLists.txt file must
|
92
|
+
contain a literal, direct call to the project() command. Add a line of
|
93
|
+
code such as
|
94
|
+
|
95
|
+
project(ProjectName)
|
96
|
+
|
97
|
+
near the top of the file, but after cmake_minimum_required().
|
98
|
+
|
99
|
+
CMake is pretending there is a "project(Project)" command on the first
|
100
|
+
line.
|
101
|
+
This warning is for project developers. Use -Wno-dev to suppress it.
|
102
|
+
|
103
|
+
CMake Error at CMakeLists.txt:31 (add_subdirectory):
|
104
|
+
The source directory
|
105
|
+
|
106
|
+
C:/Users/{ユーザ名}/AndroidStudioProjects/CubismAndroidLiveWallpaper-master/FrameWork
|
107
|
+
|
108
|
+
does not contain a CMakeLists.txt file.
|
109
|
+
|
110
|
+
|
111
|
+
CMake Error at CMakeLists.txt:33 (target_compile_definitions):
|
112
|
+
Cannot specify compile definitions for target "Framework" which is not
|
113
|
+
built by this project.
|
114
|
+
```
|
115
|
+
###### 実機のエラーを受けて試したこと
|
116
|
+
[違う場所にあったCMakeList.txt](https://github.com/Live2D/CubismAndroidLiveWallpaper/blob/master/AndroidWallPaper/app/CMakeLists.txt)をコピペして実行してみたところ、以下のエラーが出ました。
|
117
|
+
```
|
118
|
+
前略(下と似たようなsame name * is already exists.のエラーが6個)
|
119
|
+
CMake Error at CMakeLists.txt:36 (add_library):
|
120
|
+
add_library cannot create target "Demo" because another target with the
|
121
|
+
same name already exists. The existing target is a shared library created
|
122
|
+
in source directory
|
123
|
+
"C:/Users/kusan/AndroidStudioProjects/CubismAndroidLiveWallpaper-master/FrameWork".
|
124
|
+
See documentation for policy CMP0002 for more details.
|
125
|
+
|
126
|
+
|
127
|
+
CMake Error at CMakeLists.txt:40 (target_link_libraries):
|
128
|
+
Attempt to add link library "Framework" to target "Demo" which is not built
|
129
|
+
in this directory.
|
130
|
+
|
131
|
+
This is allowed only when policy CMP0079 is set to NEW.
|
132
|
+
```
|
133
|
+
|
76
134
|
【Cubism SDKのバージョン】CubismSdkForNative-4-r.4
|
77
135
|
【エミュレータ】Pixcel 2 API 30
|
136
|
+
【スマホ】Sony SOV34 (Xperia, Android 8.0)
|
78
137
|
【OS名・バージョン】Windows 10
|
79
138
|
【開発使用ツール】Android Studio Bumblebee | 2021.1.1
|