developer resources
Codebales holds an ever growing number of solutions to problems that we have experienced in our day to day code writing
Selected filter
51
results
Andrew Fletcher
•
Android Studio build errors
Build failed error: cannot find symbol if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)or
cannot find symbol Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&
To resolve - upgrade the compileSdkVersion and targetSdkVersion to 31 in your grade file. Note, this setting could be in one of the following files
android/app/build.gradle
android/variables.gradle
Also note - Build.VERSION_CODES.R only exists in API 30.
The...
Andrew Fletcher
•
Approaches to resolving “Module not specified” Error in Android Studio
When...
Andrew Fletcher
•
Working in Android Studio when attempting to run a project I had the following...
Andrew Fletcher
•
Currently, I have a situation where I have two repositories. The first is...
Andrew Fletcher
•
JSON structure
Outlining the structure of the elements common attributes:...
Andrew Fletcher
•
In this instance, I'll check the beginning of the string. I want to focus on the href's that start with /node/. Which has been added using the variable $catchPhrase.
Using the Drupal service path_alias to return the node.nid as follows:
/**
* Load the node nid from the URL alias.
*
* @param string $url URL string.
*
* @return any
*/
public function getNodeNidFromAlias($url, $phrase)
{
// Default values.
$nid = null;
...
Andrew Fletcher
•
Trying to have a chat recently, and Microsoft Teams would not open on MAC OS....
Andrew Fletcher
•
Working from the bases that .DS_Store has not been added to your git repository,...
Andrew Fletcher
•
How do you generate a .pem file from an existing .ppk key?
Is putty on your...
Andrew Fletcher
•
To sort through a multidimensional array seems to be a function that I...
Andrew Fletcher
•
Adding git tag to your actions.
The regular process that I work to is
git add -A
git commit -m "some comment"
git pushWith git tag, whilst there are many options for how you can apply git tag, this initial step I'll keep simple. As follows:
git add -A
git commit -m "some comment"
git tag some note
git pushI'm looking to trigger a GitHub pipeline action. The trigger in this instance is dev-*
So if the tag has something with dev-, then the pipeline trigger occurs. By way of...
Andrew Fletcher
•
phpcs issue in Visual Studio Code, I'm receiving this warning in VS...
Andrew Fletcher
•
Had the situation where you are running composer however, the scripts stops with...
Andrew Fletcher
•
Oh the treasure of a client coming to you with a site they have removed the...
Andrew Fletcher
•
If you edit a Drupal contrib module, the next time the module is updated those...