Code Monkey home page Code Monkey logo

android-topeka's Introduction

This repository was used for a codelab. It is no longer maintained and now archived.

android-topeka's People

Contributors

alxrm avatar appoll avatar ardock avatar dimorinny avatar jkingyens avatar keyboardsurfer avatar maxme avatar piotrek1543 avatar ryanseys avatar shchurov avatar shreyashpromact avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-topeka's Issues

Issue following Codelabs Instant App tutorial

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

Documentation on codelab

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.

Android Studio fails to run fresh Instant App

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:
screen shot 2018-08-16 at 5 22 25 pm

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.

External Storage not supporting in instant app

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.

feedback - add more information for google play upload

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

Typo in CodeLab

In Step 2: Prerequisites, the tutorial guides candidates to go to Tools -> SDK Manager. This is actually located under Tools -> Android -> SDK Manager.

Gradle Error

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:

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

java.lang.IncompatibleClassChangeError: Structural change of android.support.v4.app.Fragment is hazardous ...

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’)
}

ADB install failed for file devman.apk

Hi,
I have currently a problem to launch the instant app on my phone.

Important informations:

  • I downloaded this repo (no custom changes)
  • My Phone : HTC One A9, Android 6.0
  • Android Studio 3.2 Canary 18
  • Gradle build works
  • Installed app works on my phone
  • I used to debbug on my phone

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 ?

Error while Uploading and registering Instant App

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}

Error running installed: Default Activity not found

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.

Gradle Error : Data binding

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

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 while Running a Multi-Feature topeka Instant App

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.

com.android.feature

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.

Error at openning the project

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?

error: uses-sdk:minSdkVersion 14 cannot be smaller than version 21 declared in library

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)

How to make app module as a feature module instead base module?

Hi, hope get your responses.

What I want is:

  1. create a empty base module
  2. split app module into some small feature modules

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?

"Gradle project refresh failed" when opening project.

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."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.