我正试图为android系统找到一个相机样本,因为我很想把它弄乱,看看我能做些什么。我正在使用“导入android代码示例”中的示例代码,并使用Camera2。我有点了解它的工作原理,但是我想在我的手机上试用它,它是Android4.4,5.0是唯一需要的版本。最小sdk为5.0,如果更改错误为。“错误:任务执行失败”:Application:processDebugTestManifest‘。
com.android.manifmerger.ManifestMerger2$MergeFailureException: org.xml.sax.SAXParseException;lineNumber: 20;columnNumber: 10;未指定匹配"xXlL“的处理指令目标。
错误是这个,它说“声明必须处理所有文档内容”,它还说不能解析camera2basic的符号。
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.example.android.camera2basic"
android:label="Tests for com.example.android.camera2basic" />
那么,我的问题是,是否有一种方法可以使它不仅仅是棒棒糖?或者还有其他的示例代码,我可以用来玩和乱搞。
发布于 2015-02-20 22:34:54
Android在Android5.0之前并不存在,因此您不能在运行Android4.4的设备上使用它。
您可以在这里为旧的照相机API遵循API指南:http://developer.android.com/guide/topics/media/camera.html#custom-camera。
https://stackoverflow.com/questions/28599958
复制相似问题