我试图使用openfl-gpg和openfl-gps-lib在我的HaxePunk游戏中使用Google Play服务。不幸的是,当我尝试构建时,我得到以下错误:
BUILD FAILED
E:DevelopmentAndroid SDKtoolsantbuild.xml:577: com.android.io.StreamException: java.io.FileNotFoundException: E:PROJETSTarmacTMMbinandroidbindepsgoogle-play-services_libAndroidManifest.xml (Le fichier spécifié est introuvable)
at com.android.io.FileWrapper.getContents(FileWrapper.java:93)
at com.android.xml.AndroidManifest.getStringValue(AndroidManifest.java:410)
at com.android.xml.AndroidManifest.getPackage(AndroidManifest.java:146)
at com.android.ant.ComputeDependencyTask$1.processLibrary(ComputeDependencyTask.java:198)
at com.android.ant.DependencyHelper$AdvancedLibraryProcessor.processLibrary(DependencyHelper.java:69)
at com.android.ant.DependencyHelper.processLibraries(DependencyHelper.java:210)
at com.android.ant.GetLibraryPathTask.execute(GetLibraryPathTask.java:183)
at com.android.ant.GetLibraryPathTask.execute(GetLibraryPathTask.java:162)
at com.android.ant.ComputeDependencyTask.execute(ComputeDependencyTask.java:226)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
at org.apache.tools.ant.Main.runBuild(Main.java:851)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Caused by: java.io.FileNotFoundException: E:PROJETSTarmacTMMbinandroidbindepsgoogle-play-services_libAndroidManifest.xml (Le fichier spécifié est introuvable)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at com.android.io.FileWrapper.getContents(FileWrapper.java:91)
... 24 more
Total time: 0 seconds
Build halted with errors.
我试图把一个空的AndroidManifest.xml,它是缺失的,但我只是得到另一个错误。所以我猜我做错了什么,但我不知道是什么。
任何想法?
感谢您的宝贵时间。
您应该直接将此发布到项目GitHub页面(问题下)。不管怎样,你是否从android SDK管理器下载了google play services lib ?
注意,您需要这样做(https://github.com/SempaiGames/openfl-gpg#how-to-install)。您还应该确保您现在使用的是openfl-legacy(因为openfl-next还不支持android扩展)。