question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest version does not work on Android

See original GitHub issue

Bug Report

Description

App crashes when I am trying to get data.

To Reproduce

package com.example.app

import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import com.github.kittinunf.fuel.httpGet
import com.github.kittinunf.result.Result

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        "https://jsonplaceholder.typicode.com/todos/".httpGet().responseString { request, response, result ->
            when (result) {
                is Result.Success -> {
                    println("Result: ${result.get()}")
                }
                is Result.Failure -> {
                    println("Failure")
                }
            }
        }
    }
}

Environment

Development Machine

Complete the following information if applicable

  • OS: [Windows 10]
  • IDE: [Android Studio]
  • Fuel version: [1.16.0]
  • Kotlin version: [1.2.71]

Smartphone or Emulator

Emulator

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SleeplessBytecommented, Jan 15, 2019

@CoolMind I know; I’m not thát harsch 😉 I understand why he does so. Running OSS is exhausting and issues like these are more common than well detailed ones. That said, I’ll always give people the chance to amend their question. If @HarryWindsor doesn’t reply within the month, I’ll close it as wontfix until there is more information.

0reactions
kittinunfcommented, Feb 24, 2019

I guess let’s close this as it looks stale at the moment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix an installed Android app that isn't working - Google Help
Step 1: Restart & update · Open the Google Play Store app Google Play . · At the top right, tap the profile...
Read more >
Why Won't My Android Update? How to Fix Updating Issues
Android mobile devices usually update automatically, but updates can be delayed or prevented for various reasons.
Read more >
How to fix an Android phone that doesn't work right after ...
If your Android device seems to experience problems after upgrading its software then one of the best solutions to the problem is to...
Read more >
How to fix an Android Phone that doesn't work ... - AndroidSRC
How do I know that the OS upgrade was installed correctly on your phone? · Step 1: On your phone, tap Settings ·...
Read more >
Top 5 Ways to Fix 'Your Device Isn't Compatible with This ...
1. Update Android OS ... It's the first thing you should do when you face the 'your device isn't compatible with this version'...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found