小编sim*_*ebe的帖子

Google App Invite - 无法启动

我正在尝试在我的项目中使用Google App Invite,遵循其官方文档GitHub上的最新配置中的所有步骤.

但是,它在调试和发布版本中都不起作用!它仅Snackbar在两个版本中显示此消息:

未能启动

它不会在调试模式下留下任何堆栈跟踪,我已经尝试使用我的Google Developer帐户中的Alpha Testing安装发行版.这是我在发布版本上的完整项目配置:

Android Manifest.xml

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.package.name">

    <application
        ... >
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
    </application>
    ...
</manifest>
Run Code Online (Sandbox Code Playgroud)

项目级build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-beta6'
        classpath 'com.google.gms:google-services:2.0.0-beta6'
        // I've tried classpath 'com.google.gms:google-services:2.0.0-alpha5' too

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module …
Run Code Online (Sandbox Code Playgroud)

android google-app-invites

3
推荐指数
1
解决办法
764
查看次数

XML 中的 TextInputEditText requestFocus 导致呈现问题

似乎我无法放入requestFocus我的内部,TextInputEditText因为它会使用此堆栈跟踪在预览屏幕上导致渲染问题:

android.content.res.Resources$NotFoundException: Unable to find resource ID #0x1ff0005
at android.content.res.Resources.getResourceName(Resources.java:2235)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2602)
at android.content.res.Resources.loadDrawable(Resources.java:2540)
at android.content.res.Resources.getDrawable(Resources.java:806)
at android.content.Context.getDrawable(Context.java:458)
at android.widget.Editor.updateCursorPosition(Editor.java:2007)
at android.widget.Editor.updateCursorsPositions(Editor.java:1703)
at android.widget.TextView.getUpdatedHighlightPath(TextView.java:5526)
at android.widget.TextView.onDraw(TextView.java:5713)
at android.view.View.draw(View.java:16178)
at android.view.View.draw(View.java:16090)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3609)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16181)
at android.support.design.widget.TextInputLayout.draw(TextInputLayout.java:845)
at android.view.View.draw(View.java:16090)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3609)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16088)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3609)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16088)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3609)
at android.view.ViewGroup_Delegate.drawChild(ViewGroup_Delegate.java:61)
at android.view.ViewGroup.drawChild(ViewGroup.java:3609)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:3399)
at android.view.View.draw(View.java:16088)
at android.view.ViewGroup.drawChild_Original(ViewGroup.java:3609) …
Run Code Online (Sandbox Code Playgroud)

xml android android-layout android-support-library android-textinputlayout

2
推荐指数
1
解决办法
2104
查看次数