내 안드로이드 앱 중포 기지 색인을 구현하기 위해 노력하고 내가 URL을 시작하려고 할 때, 디버거가 연결하는 데 실패하고 로그 파일이 나에게 직접 아무것도안드로이드 중포 기지 발사 URL
을 말하지 않는다여기 https://firebase.google.com/docs/app-indexing/android/app
이 튜토리얼 아직 가지고 있지 않는 한 가지를 수행 노력하고있어 내가 서버에 /.well-known/assetlinks.json을 누락 것입니다. 나는 그것이 배포되기를 기다리고있다. 하지만 앱이 시작되는 방식에 영향을 미치지 않아야한다고 생각합니다.
내 안드로이드 프로젝트에 중포 기지 추가 한
나는 응용 프로그램 폴더에 구글 - services.json을 복사 한
내 프로젝트 레벨 build.gradle에 구글-서비스를 추가 한
buildscript {
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.1'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
maven { url "http://dl.bintray.com/populov/maven" }
mavenCentral()
maven { url "http://appboy.github.io/appboy-android-sdk/sdk" }
}
}
나는 com.google.firebase 추가 한 :
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.2'
defaultConfig {
applicationId "boom"
minSdkVersion 23
targetSdkVersion 25
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
versionCode 93
versionName "5.0.1"//MUST NOT EXCEED 10 CHARS.
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
buildConfigField "boolean", "TEST_PROJECT", "false"
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
buildConfigField "boolean", "TEST_PROJECT", "true"
multiDexEnabled true
}
}
android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}
productFlavors {
prod {
}
mock {
applicationId "boom"
}
}
}
dependencies {
// Android JUnit Runner
compile 'com.android.support:design:25.1.1'
compile 'com.android.support.test:runner:0.5'
compile 'com.android.support:design:25.1.1'
compile 'com.android.support.test:runner:0.5'
compile 'com.appboy:android-sdk-ui:1.15.+'
compile 'com.google.code.gson:gson:2.4'
compile 'com.facebook.android:facebook-android-sdk:4.22.0'
compile 'com.google.android.gms:play-services:10.2.1'
compile 'com.squareup.okhttp:okhttp:2.1.0'
compile 'com.squareup.okio:okio:1.0.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.viewpagerindicator:library:2.4.1'
compile 'com.github.chrisbanes.photoview:library:1.2.2'
compile 'com.android.support.test:rules:0.5'
compile 'com.facebook.stetho:stetho:1.3.1'
compile 'com.facebook.stetho:stetho-okhttp:1.2.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support:recyclerview-v7:25.1.1'
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.android.support:preference-v7:25.1.1'
compile 'com.android.support:support-annotations:25.1.1'
compile 'com.android.support:support-v4:25.1.1'
compile 'com.android.support:cardview-v7:25.1.1'
compile 'com.google.firebase:firebase-appindexing:10.2.1'
// Testing
compile 'com.google.android.apps.common.testing.accessibility.framework:accessibility-test-framework:2.1'
compile 'com.android.support.test.espresso:espresso-core:2.2.2'
compile 'com.android.support.test.espresso:espresso-intents:2.2'
compile 'com.android.support.test.espresso:espresso-contrib:2.2.2'
testCompile 'com.android.support:support-annotations:25.1.1'
testCompile 'com.android.support:design:25.1.1'
testCompile 'org.mockito:mockito-core:2.4.0'
testCompile 'org.powermock:powermock-api-mockito:1.7.0RC2'
testCompile 'org.powermock:powermock-module-junit4-rule-agent:1.6.1'
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.1'
testCompile 'org.powermock:powermock-module-junit4:1.6.1'
testCompile 'org.robolectric:robolectric:3.3.1'
testCompile 'org.robolectric:shadows-multidex:3.3.1'
testCompile 'org.robolectric:shadows-support-v4:3.3.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
: 내 응용 프로그램 수준 Gradle을 파일에 10.2.1 '중포 기지-appindexing
내가 여기 명시된 바와 같이 나는 URL을 시작하려고하면 이벤트
<!-- Firebase Indexing -->
<activity
android:name=".new_app.firebaseindexing.FirebaseIndexingActivity"
android:label="@string/app_name"
android:exported="true"
android:launchMode="singleTop"
android:theme="@style/Theme.AppCompat.Light">
<intent-filter android:label="@string/app_name" android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "http://recipe-app.com/*" -->
<data android:scheme="http"
android:host="boom.de"
android:pathPrefix="/schuhe" />
<!-- Accepts URIs that begin with "https://recipe-app.com/*" -->
<data android:scheme="https"
android:host="boom.de"
android:pathPrefix="/schuhe" />
</intent-filter>
</activity>
을 위해 등록하는 새로운 활동을 포함 시켰습니다 : https://firebase.google.com/docs/app-indexing/android/test
디버거가 연결에 실패로그에 너무 많은 것이 있습니다. 전체 로그를 첨부 할 수는 없지만 등록합니다. 모든 '중포 기지'에 대한 ex'd이 볼 수
05-03 11:01:25.102 31421-31421/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-03 11:01:25.112 31421-31421/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-03 11:01:25.144 31421-31421/? I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.samsung.android.samsungpass
05-03 11:01:25.160 31421-31421/? I/FirebaseInitProvider: FirebaseApp initialization successful
05-03 11:01:25.603 31488-31488/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-03 11:01:25.611 31488-31488/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-03 11:01:25.640 31488-31488/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app tv.peel.app
05-03 11:01:25.648 31488-31488/? I/FirebaseInitProvider: FirebaseApp initialization successful
05-03 11:01:31.731 31832-31832/? I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
05-03 11:01:36.395 32186-32186/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-03 11:01:36.799 32186-32186/? I/FirebaseCrashApiImpl: FirebaseCrashApiImpl created by ClassLoader p[DexPathList[[zip file "/data/data/com.google.android.gms/app_chimera/m/00000016/DynamiteModulesC_GmsCore_prodmnc_alldpi_release.apk"],nativeLibraryDirectories=[/data/user/0/com.google.android.gms/app_chimera/m/00000016/n/armeabi-v7a, /data/user/0/com.google.android.gms/app_chimera/m/00000016/n/armeabi, /system/lib, /vendor/lib]]]
05-03 11:01:36.905 32186-32186/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.rsupport.mvagent
05-03 11:01:36.922 32186-32186/? I/FirebaseCrash: FirebaseCrash reporting initialized [email protected]
05-03 11:01:36.922 32186-32186/? I/FirebaseInitProvider: FirebaseApp initialization successful
05-03 11:01:38.877 32501-32501/? I/FirebaseInitProvider: FirebaseApp initialization unsuccessful
05-03 11:01:39.544 32571-32571/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-03 11:01:39.552 32571-32571/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-03 11:01:39.586 32571-32571/? I/FA: To enable faster debug mode event logging run:
adb shell setprop debug.firebase.analytics.app com.phonepe.app
05-03 11:01:39.608 32571-32571/? I/FirebaseInitProvider: FirebaseApp initialization successful
05-03 11:01:40.736 3664-13927/? I/ActivityManager: Start proc 32751:com.samsung.android.samsungpass/u0a137 for broadcast com.samsung.android.samsungpass/com.google.firebase.iid.FirebaseInstanceIdInternalReceiver
05-03 11:01:40.825 32751-32751/? D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
05-03 11:01:40.841 32751-32751/? D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
05-03 11:01:40.886 32751-32751/? I/FA: To enable faster debug mode event logging run:
adb shell setprop firebase.analytics.debug-mode com.samsung.android.samsungpass
05-03 11:01:40.907 32751-32751/? I/FirebaseInitProvider: FirebaseApp initialization successful
05-03 11:01:41.016 32751-309/? D/FirebaseInstanceId: topic sync succeeded
05-03 11:01:42.803 32751-459/? D/FirebaseInstanceId: topic sync succeeded
난 아직도 서버 아직 내 '여단입니다 알려진/assetlinks.json'파일을 누락 있습니다하지만 난 문제가 생각 배포 될 때까지 계속 유지됩니다.
이 문제를 디버깅하는 방법이나 로그를 찾는 방법에 대한 아이디어가 있습니까?
업데이트 한 안드로이드 디버그 브리지 테스트 : 나는 ABD 도구를 사용하고 구글의 설치 설명서에 따라 테스트를 시작할 수 있습니다 ,이 활동을 시작한다 :
adb shell am start -a android.intent.action.VIEW -d "www.boom.de/schuhe/" boom.android
을하지만 그렇지 않습니다. 알겠습니다 :
Starting: Intent { act=android.intent.action.VIEW dat=http://www.boom.de/... pkg=boom launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=http://www.boom.de/... flg=0x10000000 pkg=boomi launchParam=MultiScreenLaunchParams { mDisplayId=0 mFlags=0 } }
따라서 매니페스트가 올바르게 설정되지 않았다고 생각됩니다.
업데이트 2 안드로이드 디버그 브리지 테스트 :
좋아, 나는 그것을 이런 식으로 작업합니다. 우리가 URL을 전달하는 방식이 큰 차이를 만든다고 생각합니다. 'www.'part'를 꺼내 'http : //'로 바꾸면 작동합니다. 예 :
adb 셸 am start -a android.intent.action.VIEW -d "http://boom.de/schuhe/"붐.