我的应用程序结束后,从gps活动到浏览活动。下面是错误。
> com.android.ide.eclipse.adt.internal.project.AndroidManifestHelper]
> Parser exception for C:\filepath\AndroidManifest.xml: Element type
> "activity" must be followed by either attribute specifications, ">" or
> "/>"
我发现原因是:
&
我刚刚从Eclipse迁移到了Android,我使用Appcompat库,因为它默认在Android中,很难禁用它。
问题是,当我创建一个ActiveBar时,应该在溢出菜单中显示的项永远不会出现,溢出菜单图标(3个点)也不会出现。
只创建栏中的项目,如果我触摸打开溢出菜单的硬件键,应用程序就会崩溃。
MainActivity.java:
public class MainActivity extends ActionBarActivity {
public final static String EXTRA_MESSAGE = "com.learning.app1.MESSAGE&
我一直在寻找可能对我有帮助的答案,但所有的解决方案都给了我同样的错误。我对java语言非常陌生,所以一些建议将是非常有用的。
这是错误
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.Button.setOnClickListener(android.view.View$OnClickListener)' on a null object reference at hilmyzizi.yuk.MainActivity.onCreate
当使用build:gradle:3.0.1构建项目时,我得到了这个错误。
AAPT2 error: check logs for details
我已经尝试过解决方案
android.enableAapt2=false
在本文中提到的gradle.properties文件中:
它可以工作,但Java编译器会给出警告,
WARNING: The option 'android.enableAapt2' is deprecated and should not be used anymore。
我们可以在不使用android.enableAapt2=false的情况下解决AAPT
当来自后台服务和移动屏幕的API调用关闭时。得到了以下错误。
无法解析主机:没有与主机名W/System.err: at java.net.InetAddress.lookupHostByName(InetAddress.java:424) at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236) at java.net.InetAddress.getAllByName(InetAddress.java:214) at com.android.okhttp.internal.Dns$1.getAllByName(Dns.ja
今天,我无法确定的原因是,每当我试图对Android进行归档时,我的Android构建就会在下面显示这个错误:
Please ensure that you are using a release configuration and that the "Use Shared Mono Runtime" option in your project's build options is unchecked.
当然,我已经确保“使用共享运行时”(这是最接近错误消息的东西)选项不被选中。我还使用了相同的版本配置,已经成功构建和存档了几个月,包括上周。
所有这一切,有没有其他人
我最近开始使用ExoPlayer在我的安卓应用程序上播放流链接,比如.m3u8和.mp4文件,但是当我尝试播放.ts文件时,下面的消息开始出现在android中:
源错误com.google.android.exoplayer2.source.UnrecognizedInputFormatException:输入不以#EXTM3U头开始。在com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser.parse(HlsPlaylistParser.java:119) at com.google.android.exop
我正在尝试建立相互依赖的gradle模块,并在它们之间传递正确的构建配置。我得到的错误是:
Error: Configuration with name 'debug' not found.
构建类型被正确声明..。我还需要补充些什么?
项目build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}