This repository was used for a codelab. It is no longer maintained and now archived.
googlearchive / android-topeka Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
This repository was used for a codelab. It is no longer maintained and now archived.
I am working on instant app and was implementing the google code lab example.
Everything is going ok but in the last I got this error:
Error running topeka-instantapp: URL "https://topeka.samples.androidinstantapps.com/signin" not defined in the manifest
Hi,
it happens trying to complete the 5th step of the tutorial:
https://codelabs.developers.google.com/codelabs/android-instant-apps/#4
After following the documentation and before building the APK from the dedicated module I see the next error:
Error:Execution failed for task ':apk:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (21.0.3) and runtime (26.0.2) classpath. You should manually set the same version via DependencyResolution
I'm using AS 3.0 - beta5
I've also tried adding the following lines that I found in an example from Google but it did not work either:
api ('com.google.android.instantapps:instantapps:1.0.0') {
// This is to exclude the transitive dependencies for the support library otherwise
// the project doesn't compile with the error below.
//
// > Android dependency 'com.android.support:support-v4' has different version for the compile (23.3.0) and runtime (25.3.1) classpath. You should manually set the same version via DependencyResolution
exclude group: 'com.android.support'
}
configurations.all {
resolutionStrategy {
eachDependency { details ->
// Force all of the primary support libraries to use the same version.
if (details.requested.group == 'com.android.support') {
details.useVersion "26.0.2"
}
}
}
}
Any tip?
Thank you
I follow exactly same procedure to my app but when I generate the sign apk it show me error " Package name of your Instant App APKs should be the same as your app's package name." and I can not rename the app module because then it will conflict the base app module and I try it
https://codelabs.developers.google.com/codelabs/android-instant-apps/#5
At the point 6, the given host url for categories and quiz are invalid.
http://topeka.samples.androidinstantapps.com/categories to CategorySelectionActivity
http://topeka.samples.androidinstantapps.com/quiz to QuizActivity
Have to exclude the ".samples" keyword from both host url.
http://topeka.androidinstantapps.com/categories to CategorySelectionActivity
http://topeka.androidinstantapps.com/quiz to QuizActivity
Thanks.
@jkingyens How I can enable data binding in my non-base feature module?
When i try to add
dataBinding {
enabled true
}
to topekaui module i meet issue mentioned below:
https://issuetracker.google.com/63814741 for details
and when i than try to add baseFeature = true to this module i get:
A dependent feature was defined but no package ID was set. You are probably missing a feature dependency in the base feature.
Any ideas?
I created an instant app using the New Project flow by checking "Include Android Instant App support" and filling in the details. The project created and on running it, it gave me this error:
So I found the codelab and followed the steps exactly as written and got the same error when I finished it. So, I went back and did a step by step compile and build to see when the issue occurs. I had no issues until the end of Move existing code into a feature module. But when I run the first step of the next module i.e. Create an instant app module I start getting this error. The issue is that Android Studio doesn't even tell me where the issue is. I tried checking the Event Log and I see one:
5:41 PM Error running 'instant': URL "<<ERROR - NO URL SET>>" not defined in the manifest.
What is going on, google searching didn't present any solutions either. The only link I found was this stackoverflow article and even that doesn't help because at that step I hadn't added any data elements to the manifest yet. That gets added at step 3 using the App Links Assistant and the issue persists even in that case--and even then it wouldn't apply since the App Links Assistant merely write direct strings and not resource references so that stackoverflow answer doesn't address this issue at all.
The given link in the fetch Sample project: https://github.com/jkingyens/android-topeka/archive/master.zip is showing 404
I am facing problem in android instant apps
as I am having multiple permissions in app:-
Manifest.permission.ACCESS_FINE_LOCATION,
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.READ_PHONE_STATE,
Manifest.permission.READ_SMS
but I am only getting Location permission in instant app,not getting another permissions
so what I do
Please help me as soon as possible.
Overall it's a great tutorial but there are a few things lacking especially if someone wants to test out an instant app via Google Play Console upload
Your site 'example.com' could not be reached at this time to verify it has been linked through the Digital Assets Link protocol to your app. Check your site's URL and try again later.
Thanks
In Step 2: Prerequisites, the tutorial guides candidates to go to Tools -> SDK Manager. This is actually located under Tools -> Android -> SDK Manager.
Error:Unable to find method 'com.android.build.gradle.tasks.factory.AndroidUnitTest.setTestClassesDirs(Lorg/gradle/api/file/FileCollection;)V'.
Possible causes for this unexpected error include:
This erro is reproducible by following the codelab instructions after moving classes from "topeka-base" to "topeka-ui", as well as using the latest code of "complete" branch. It's also reported by a developer as a comment under thje I/O video.
The culprit is that topeka-base and topeka-ui are using different versions of the support library, therefore causing the incompatibility error.
The fix is simply use the same version of support library in topeka-ui’s gradle file. Something like:
...
ext {
supportLibVersion = “25.0.0”
}
dependencies {
compile “com.android.support:appcompat-v7:${supportLibVersion}”
compile “com.android.support:cardview-v7:${supportLibVersion}”
compile “com.android.support:design:${supportLibVersion}”
compile “com.android.support:recyclerview-v7:${supportLibVersion}”
api project(‘:topeka-base’)
}
I did everything as mentioned in the guide but cannot make it can be runnable.
It fails in gradle build with missing layouts file for activity/fragment and strings resource.
Instant app codelabs is lacking behind due to updates in both Kotlin and Android Studio. Please update it from Kotlin 1.2.10 to 1.3.40 and do the necessary codechanges to comply, Android 3.5 is soon released...
Hi,
I have currently a problem to launch the instant app on my phone.
Important informations:
There is the log when I try to launch the instant app:
06/13 17:40:34: Launching instant
INFO - Analyzing files...
INFO - Checking device...
com.google.android.instantapps.sdk.lib.AdbHelper$AdbCommandException: ADB install failed for file devman.apk
Command output:
[ 4%] /data/local/tmp/devman.apk
[ 9%] /data/local/tmp/devman.apk
[ 13%] /data/local/tmp/devman.apk
[ 18%] /data/local/tmp/devman.apk
[ 22%] /data/local/tmp/devman.apk
[ 27%] /data/local/tmp/devman.apk
[ 32%] /data/local/tmp/devman.apk
[ 36%] /data/local/tmp/devman.apk
[ 41%] /data/local/tmp/devman.apk
[ 45%] /data/local/tmp/devman.apk
[ 50%] /data/local/tmp/devman.apk
[ 54%] /data/local/tmp/devman.apk
[ 59%] /data/local/tmp/devman.apk
[ 64%] /data/local/tmp/devman.apk
[ 68%] /data/local/tmp/devman.apk
[ 73%] /data/local/tmp/devman.apk
[ 77%] /data/local/tmp/devman.apk
[ 82%] /data/local/tmp/devman.apk
[ 87%] /data/local/tmp/devman.apk
[ 91%] /data/local/tmp/devman.apk
[ 96%] /data/local/tmp/devman.apk
[100%] /data/local/tmp/devman.apk
C:\Users\Adelya\AppData\Local\Android\Sdk\extras\google\instantapps\tools\apks\release\devman.apk: 1 file pushed. 4.0 MB/s (1430720 bytes in 0.339s)
pkg: /data/local/tmp/devman.apk
Success
Error while Uploading and launching Instant App
What went wrong ? Do you have any idea ?
device: samsung galaxy j7
api: 23
Side loading instant app failed: Failure when trying to read bundle. Unable to connect to Google Play Service. ConnectionResult{statusCode=API_UNAVAILABLE, resolution=null, message=null}
My project use mutli-feature module to instead old architecture.
Hi,
I have created the Muti Feature instant app following the code lab. I want to use Firebase with both instant and installed apps so I have used Google Firebase Tool to Connect Firebase and selected installed module in the window so it applies the Google Play Services Plugin in the "installed" module.
But as soon as I do that, I am not able to run the project while installed selected from the Project Configuration. It is giving the following error:
Error running installed: Default Activity not found
I also tried adding the google play services plugin to the "base" module but still I faced the same error.
Please help.
https://codelabs.developers.google.com/codelabs/android-instant-apps/#6
Error:Currently, data binding does not work for non-base features. Move data binding code to the base feature module.
See https://issuetracker.google.com/63814741.
To enable data binding with non-base features, set the android.enableExperimentalFeatureDatabinding property to true.
Hello,
I am getting the following error when starting the Multi-feature part.
`Error:A problem occurred configuring project ':topekaui'.
Currently, data binding does not work for non-base feature modules.
Please, move data binding code to the base feature module.
See https://issuetracker.google.com/63814741 for details`
Should I downgrade my android studio 3 ?
unable to build the project getting below error, please assist:
ERROR: Could not download kotlin-reflect.jar (org.jetbrains.kotlin:kotlin-reflect:1.1.4-3): No cached version available for offline mode
Error:A problem was found with the configuration of task ':topekaapk:dataBindingExportBuildInfoDebug'.
Directory 'F:\downloads\topeka\topekaapk\build\intermediates\data-binding-info\debug' specified for property 'xmlOutFolder' does not exist.
https://codelabs.developers.google.com/codelabs/android-instant-apps/#5
activity field should be .activity.SigninActivity (topeka-base)
not .activity.SigninActivity (topekaui)
Cannot start compilation: the output path is not specified for module "android-topeka-master".
Specify the output path in Configure Project.
shows that feature id not found. error in compiling the gradle. please help.
error by converting the application module to feature module in step 5.
https://codelabs.developers.google.com/codelabs/android-instant-apps/#4
May I ask where feature was derived in step 5 when changing the application to feature?
I am having this error when after changing it..
Error:(1, 0) Plugin with id 'com.android.feature' not found.
Please help.
On opening the project (The complete branch) using Android Studio 3.4, it straight away error out with the below message
ERROR: Cause: https://downloads.gradle-dn.com/distributions-snapshots/gradle-4.0-20170417000025+0000-all.zip
Did I miss anything?
When I add the category module to the project and the gradlew files, an error occurs when trying to run the app.
This is the error:
Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 21 declared in library [:categories] /Users/admin/Development/Projects/AndroidStudio/android-topeka-singleModule/categories/build/intermediates/manifests/full/debug/AndroidManifest.xml as the library might be using APIs not available in 14
Suggestion: use a compatible library with a minSdk of at most 14,
or increase this project's minSdk version to at least 21,
or use tools:overrideLibrary="com.google.samples.apps.topeka.categories" to force usage (may lead to runtime failures)
The guide is still using deprecated com.android.feature
gradle module types, while com.android.dynamic-feature
is the way to go.
Both:
https://codelabs.developers.google.com/codelabs/android-instant-apps and https://codelabs.developers.google.com/codelabs/android-multi-feature-instant-app are outdated.
Hi, hope get your responses.
What I want is:
base module
if I create a new base feature
, and switch app module to feature module, the project shows can't found some resources like strings or mipmap.
Would you deploy show more details about this?
As soon as I import and open the project, and sync starts, I get the error shown below.
In the "Messages" tab:
Gradle 'android-topeka' project refresh failed
Error:Cause: https://downloads.gradle.org/distributions-snapshots/gradle-4.4-20171031235950+0000-all.zip
In the "Build" tab:
android-topeka: sync failed
Download https://services.gradle.org/distributions-snapshots/gradle-4.4-20171031235950+0000-all.zip
Attempting to access the URL via Web browser displays a raw XML stating that "The specified key does not exist."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.