草庐IT

Parent_process

全部标签

Android Studio 2.3 更新 : Warning:Using incompatible plugins for the annotation processing: android-apt. 这可能会导致意外行为

因此,我已经阅读了我可以在本网站上找到的关于此问题的所有问题。我还在评论中与一位遇到类似问题的开发人员进行了交谈,他能够解决这个问题。我的gradle脚本中没有写apt或annotationProcessor。我的代码中没有任何地方写过android-apt这个词。我什至继续检查了所有的图书馆。这已包含在我的项目中。这是一个非常大的问题,需要解决。我在下面附上修改后的build.gradle,请建议:applyplugin:'com.android.application'applyplugin:'realm-android'android{dexOptions{jumboMode=t

java - Android Lollipop java.lang.SecurityException : Neither user nor current process has android. permission.BLUETOOTH_PRIVILEGED

我目前正在开发一个Android应用程序,该应用程序使用Eclipse(Java)通过蓝牙连接到设备。目前我有它在Android4.4(Kit-Kat)及以下版本上工作,但在新的更新Android5(Lollipop)之后。发生安全异常。list:代码:mBleScanner.startScan(filters,scanSettings,mLeScanCallback);privateScanCallbackmLeScanCallback=newScanCallback(){@OverridepublicvoidonScanResult(intcallbackType,ScanResu

Android ActionBar.Tab setCustomView() 不 fill_parent

我在这个布局中使用ActionBar.TabsetCustomView()方法:这是我设置ActionBar的函数:publicvoidsetActionBar(){ActionBaractionBar=getSupportActionBar();//actionBar.hide();actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);actionBar.setDisplayShowHomeEnabled(false);actionBar.setDisplayShowTitleEnabled(false);//setac

android - 异常 : Callbacks must set parent bounds in populateNodeForVirtualViewId()

我的Android应用程序崩溃报告服务报告了很多实例:java.lang.RuntimeException:CallbacksmustsetparentboundsinpopulateNodeForVirtualViewId()ativ.a(SourceFile:56)atiw.a(SourceFile:716)athq.a(SourceFile:112)athw.createAccessibilityNodeInfo(SourceFile:42)atandroid.view.AccessibilityInteractionController$AccessibilityNodePre

Android 抛出带有 LOG : Transaction failed on small parcel; remote process probably died 的 DeadObjectException

07-2204:38:07.93315793338EJavaBinder:!!!FAILEDBINDERTRANSACTION!!!(parcelsize=352)07-2204:38:07.93315793338WBroadcastQueue:Can'tdeliverbroadcasttocom.android.systemui(pid2160).Crashingit.07-2204:38:07.93415793338WBroadcastQueue:FailuresendingbroadcastIntent{act=android.intent.action.TIME_TICKflg

安卓连接服务 "Neither user 10052 nor current process has android.permission.ACCESS_NETWORK_STATE."

即使我在list中有权限,我也有此异常的报告:E/AndroidRuntime(1215):java.lang.RuntimeException:UnabletostartactivityComponentInfo{****}:java.lang.SecurityException:ConnectivityService:Neitheruser10052norcurrentprocesshasandroid.permission.ACCESS_NETWORK_STATE.Manifest.xml.... 最佳答案 尝试重建您的项目(

android - styles.xml 中的 'parent' 是什么意思?

parent="android:Theme.Holo"在res/values/styles.xml中是什么意思?@drawable/mDrawable 最佳答案 Parent属性表示您当前的主题扩展了这个Parent主题。它具有您可以在当前样式中覆盖的所有属性。这是一种样式继承。您也可以在这里查看:http://developer.android.com/guide/topics/ui/themes.html#Inheritance 关于android-styles.xml中的'pare

Android fill_parent to match_parent

引入match_parent和弃用fill_parent的原因是什么,因为两者意思相同。这种变化不会妨碍向后兼容吗? 最佳答案 使用match_parent而不是fill_parent不会使生成的APK在旧版本中无法运行,因为在生成的APK中,match_parent和fill_parent的出现将被替换为它们相应的常量值,在这种情况下是相同的(均为-1),因此相同的APK也可以在旧版本的Android平台上运行。但是在编译代码时,如果切换到旧版本(版本7或更低版本),则会出现编译错误(因为match_parent未在版本7或更低版

android - RecyclerView 项目宽度 layout_width =“match_parent” 与父级不匹配

我正在使用RecyclerView并且我正在尝试使RecyclerView的宽度项与父级匹配,因为我正在使用LinearLayoutManager.HORIZONTAL自定义布局.xml布局管理器LinearLayoutManagerlinearLayoutManager=newLinearLayoutManager(getActivity(),LinearLayoutManager.HORIZONTAL,false);listOffersHits.setLayoutManager(linearLayoutManager);View持有者Viewview=LayoutInflater.

Android ImageView 在 GingerBread 下面的 FrameLayout 中不匹配_parent

我正在尝试为聊天室构建一个对话泡泡。每个对话气泡都有附加的xml布局。我通过将textView设置为wrap_content,将对话泡泡imageView设置为ma​​tch_parent和frame_layout到wrap_content。因此文本后面的speech_bubble图像根据气泡中的文本量缩放。我将textView的宽度设置为与父级匹配,并将高度设置为wrap_content,出于某种原因,它完美地工作,符合IceCreamSandwich(Android4.1)的要求.但是在Gingerbread中,内部imageView语音气泡不会缩放到match_parent,因此