practical-android | Source code for 'Practical Android ' by Mark Wickham | Android library
kandi X-RAY | practical-android Summary
kandi X-RAY | practical-android Summary
This repository accompanies Practical Android by Mark Wickham (Apress, 2018). Download the files as a zip using the green button, or clone the repository to your machine using Git.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Reads the data from the specified file .
- Save ringtone .
- Computes the smoothed values for all zoom levels .
- Called when a photo is taken .
- Handles a single byte .
- Saves a wave file .
- Process a single byte
- Provides a loader that loads a media file .
- Creates a DescriptDescriptor
- Read media files .
practical-android Key Features
practical-android Examples and Code Snippets
Community Discussions
Trending Discussions on practical-android
QUESTION
I am following the book Practical Android by Mark Wickham. I am trying to open the source code from the Connections app here, but am running into many problems as it's an older project(2018).
Problems
- Stuck on the loading screen devices; cannot run project
What I've tried
- Invalidating cache/restarting from this link Android Studio device list stuck on loading
- https://medium.com/updating-old-android-studio-projects-to-work-in/updating-old-android-studio-projects-to-work-in-android-studio-3-0-195eec3a9b33 Following this link, but I cannot find any gradle-wrapper in my project.
In this app specifically, my screen looks like this:
If you look at the very top, I am unable to choose any device. Please note this does not happen with any other project(tried creating blank project, problem didn't occur).
How can I run this project?
Thanks!
App build.grade:
...ANSWER
Answered 2021-May-31 at 00:56The most probably is that the version of the gradle build tools of these projects is not compatible with the build tools that your Android Studio supports..
So before opening any of these projects (to keep them unmodified by Android Studio), you can migrate them to the gradle version that already you've on android-studio. To do that you can use a text editor to change:
- In
myAppName\gradle\wrapper\gradle-wrapper.properties
file, in the linedistributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
: change to the gradle version you've (so you need to change this number in your example6.7.1
)
You can know the current gradle version(s) of Android studio from C:/Users/myUserName/.gradle/wrapper/dists/
- In
myAppName\build.gradle
you need to change the gradle plugin version to be matched with the gradle distribution version you've from step no.1. Documentation table that lists which version of Gradle is required for each version of the Android Gradle plugin.
UPDATE
Please follow below procedure.. it is tedious but works:
Create a brand new project that has a package name that is the same as that of your project.
Copy
src
,lib
,raw
.. or any assets folders under/app
of your project into the/app
of the brand new project ..Remove the
themes.xml
filesCopy dependency from
\app\build.gradle
to the new project & replacecompile
withimplementation
, andtestCompile
withtestImplementation
I did a test on one of the apps emailing
app and it runs.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install practical-android
You can use practical-android like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the practical-android component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page