<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[General Discussion]]></title><description><![CDATA[A place to talk about whatever you want]]></description><link>https://forum.all.tz/category/2</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 15:27:36 GMT</lastBuildDate><atom:link href="https://forum.all.tz/category/2.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 07 Aug 2024 08:29:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[How to Resolve the 401 Unauthorized Error When Accessing GitHub Maven Packages]]></title><description><![CDATA[<p dir="auto">If you encounter the following error while developing an Android app, it might be due to authentication issues with GitHub Maven packages:</p>
<pre><code>* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
&gt; Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   &gt; Could not resolve com.trustwallet:wallet-core:3.1.27.
     Required by:
         project :app &gt; project :trust_wallet_core
      &gt; Could not resolve com.trustwallet:wallet-core:3.1.27.
         &gt; Could not get resource 'https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core/3.1.27/wallet-core-3.1.27.pom'.
            &gt; Could not GET 'https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core/3.1.27/wallet-core-3.1.27.pom'. Received status code 401 from server: Unauthorized

* Try:
&gt; Run with --stacktrace option to get the stack trace.
&gt; Run with --info or --debug option to get more log output.
&gt; Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s
Running Gradle task 'assembleDebug'...                              7.6s
[!] Gradle threw an error while downloading artifacts from the network.
Error: Gradle task assembleDebug failed with exit code 1
</code></pre>
<h3>Understanding the Issue</h3>
<p dir="auto">This error indicates that while trying to resolve dependencies from GitHub Packages, the authentication failed with a 401 Unauthorized error. GitHub Packages requires credentials even for public packages, which means you need an access token to publish, install, and delete packages regardless of their visibility.</p>
<p dir="auto">For more information on GitHub access tokens, refer to the <a href="https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens" rel="nofollow ugc">Git-Hub access tokens </a>.</p>
<h5><strong>Solution:</strong> Configuring GitHub Credentials in Gradle</h5>
<p dir="auto">To resolve this issue in your Android project using Gradle, you need to configure your GitHub credentials in the <code>gradle.properties</code> file. Here are the steps:</p>
<ol>
<li>Add Credentials to <code>gradle.properties</code>:</li>
</ol>
<p dir="auto">Create or edit the <code>gradle.properties</code> file in your project’s root directory (or if you are using flutter in android part) and add your GitHub username and access token:</p>
<p dir="auto">properties</p>
<pre><code>gpr.user=your-github-username
gpr.key=your-github-access-token
</code></pre>
<ol start="2">
<li>Update <code>build.gradle</code> to Use the Credentials:</li>
</ol>
<p dir="auto">Edit your project-level (android level) <code>build.gradle</code> file to include the GitHub repository and use the credentials from <code>gradle.properties</code>:</p>
<p dir="auto"><strong>groovy</strong></p>
<pre><code>allprojects {
    repositories {
        google()
        mavenCentral()
        maven {
            url = "https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core-proto/3.1.27/wallet-core-proto-3.1.27.pom"
            credentials {
                username = project.findProperty("gpr.user") 
                password = project.findProperty("gpr.key")
            }
        }
    }
}
</code></pre>
<p dir="auto"><strong><code>NB: you can check how to configure this in other building tools</code></strong></p>
<p dir="auto">In the above example, replace <a href="https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core-proto/3.1.27/wallet-core-proto-3.1.27.pom" rel="nofollow ugc">https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core-proto/3.1.27/wallet-core-proto-3.1.27.pom</a> with the appropriate URL for the package you need to access.</p>
<p dir="auto">Example<br />
Here’s a full example of how your build.gradle file might look after making these changes:</p>
<p dir="auto"><strong>groovy</strong></p>
<pre><code>apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 30
    defaultConfig {
        applicationId "com.example.yourapp"
        minSdkVersion 21
        targetSdkVersion 30
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    google()
    mavenCentral()
    maven {
        url = "https://maven.pkg.github.com/trustwallet/wallet-core/com/trustwallet/wallet-core-proto/3.1.27/wallet-core-proto-3.1.27.pom"
        credentials {
            username = project.findProperty("gpr.user")
            password = project.findProperty("gpr.key")
        }
    }
}

dependencies {
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
    implementation 'com.trustwallet:wallet-core:3.1.27@aar'
    implementation 'com.trustwallet:wallet-core-proto:3.1.27'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}
</code></pre>
<p dir="auto">With these configurations, Gradle will use the provided credentials to authenticate and access the necessary GitHub packages.</p>
<p dir="auto">This should help you resolve the 401 Unauthorized error and successfully build your project using dependencies hosted on GitHub Packages.</p>
<p dir="auto"><strong><code>Note: Understanding the problem is half the solution. Since this error can occur whenever you are trying to use a GitHub package, the solution provided here can offer valuable insights to help you resolve similar issues in other projects, not just Android ones.</code></strong></p>
]]></description><link>https://forum.all.tz/topic/12/how-to-resolve-the-401-unauthorized-error-when-accessing-github-maven-packages</link><guid isPermaLink="true">https://forum.all.tz/topic/12/how-to-resolve-the-401-unauthorized-error-when-accessing-github-maven-packages</guid><dc:creator><![CDATA[benardag]]></dc:creator><pubDate>Wed, 07 Aug 2024 08:29:02 GMT</pubDate></item><item><title><![CDATA[Fail to run html]]></title><description><![CDATA[<p dir="auto">...problem<br />
404 not found page displayed, localhost:8080</p>
<p dir="auto">launch.json file look like this,<br />
{<br />
"version": "0.2.0",<br />
"configurations": [<br />
{<br />
"type": "chrome",<br />
"request": "launch",<br />
"name": "Launch Chrome against localhost",<br />
"url": "<a href="http://localhost:8080" rel="nofollow ugc">http://localhost:8080</a>",<br />
"webRoot": "${workspaceFolder}"<br />
}<br />
]<br />
} ...</p>
]]></description><link>https://forum.all.tz/topic/11/fail-to-run-html</link><guid isPermaLink="true">https://forum.all.tz/topic/11/fail-to-run-html</guid><dc:creator><![CDATA[Reueben Limbu]]></dc:creator><pubDate>Wed, 24 Jul 2024 14:05:04 GMT</pubDate></item><item><title><![CDATA[This is a Test]]></title><description><![CDATA[<p dir="auto">LOL 😂😂😂😂</p>
]]></description><link>https://forum.all.tz/topic/10/this-is-a-test</link><guid isPermaLink="true">https://forum.all.tz/topic/10/this-is-a-test</guid><dc:creator><![CDATA[claud]]></dc:creator><pubDate>Wed, 24 Jul 2024 12:52:22 GMT</pubDate></item><item><title><![CDATA[Test]]></title><description><![CDATA[<p dir="auto"><code>This is a test test</code></p>
]]></description><link>https://forum.all.tz/topic/9/test</link><guid isPermaLink="true">https://forum.all.tz/topic/9/test</guid><dc:creator><![CDATA[claud]]></dc:creator><pubDate>Wed, 24 Jul 2024 12:49:13 GMT</pubDate></item><item><title><![CDATA[Hermes engine build error]]></title><description><![CDATA[<p dir="auto">Hermes is a JavaScript engine optimized for fast start-up of React Native apps.<br />
in case you opt not to use hermes the alternative engine will be JSC.<br />
JavaScriptCore (JSC) is an open-source JavaScript engine developed by Apple.<br />
In the context of React Native, JSC is used to execute JavaScript code on both Android and iOS platforms.</p>
<p dir="auto"><img src="/assets/uploads/files/1717596789569-2fbafafb-8669-4145-b861-14dcb4149e4c-image.png" alt="2fbafafb-8669-4145-b861-14dcb4149e4c-image.png" class=" img-fluid img-markdown" /><br />
I encountered the error  below when trying to build an android apk for a blockchain project.<br />
"<strong>Execution failed for task ':react-native:ReactAndroid:hermes-engine:configureBuildForHermes'.</strong>"<br />
<img src="/assets/uploads/files/1717596897527-37abb237-20d1-4b71-a96b-28641cc00371-image.png" alt="37abb237-20d1-4b71-a96b-28641cc00371-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">Iam looking for the wayout of the error.</p>
]]></description><link>https://forum.all.tz/topic/7/hermes-engine-build-error</link><guid isPermaLink="true">https://forum.all.tz/topic/7/hermes-engine-build-error</guid><dc:creator><![CDATA[France]]></dc:creator><pubDate>Wed, 05 Jun 2024 14:16:00 GMT</pubDate></item><item><title><![CDATA[Kubernetes Cluster]]></title><description><![CDATA[<p dir="auto">Issues with configuring kubernet clusters</p>
]]></description><link>https://forum.all.tz/topic/6/kubernetes-cluster</link><guid isPermaLink="true">https://forum.all.tz/topic/6/kubernetes-cluster</guid><dc:creator><![CDATA[gideon]]></dc:creator><pubDate>Mon, 03 Jun 2024 14:18:45 GMT</pubDate></item><item><title><![CDATA[Kernel Panic in Linux Systems]]></title><description><![CDATA[<p dir="auto">Comment and contribution</p>
]]></description><link>https://forum.all.tz/topic/5/kernel-panic-in-linux-systems</link><guid isPermaLink="true">https://forum.all.tz/topic/5/kernel-panic-in-linux-systems</guid><dc:creator><![CDATA[claud]]></dc:creator><pubDate>Thu, 30 May 2024 08:56:34 GMT</pubDate></item><item><title><![CDATA[blockchain]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.all.tz/uid/1">@claud</a></p>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.all.tz/uid/1">@claud</a> said in <a href="/post/14">blockchain</a>:</p>
<blockquote>
<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.all.tz/uid/6">@Ethan</a><br />
👀<br />
👅</p>
</blockquote>
]]></description><link>https://forum.all.tz/topic/4/blockchain</link><guid isPermaLink="true">https://forum.all.tz/topic/4/blockchain</guid><dc:creator><![CDATA[claud]]></dc:creator><pubDate>Fri, 10 May 2024 08:53:06 GMT</pubDate></item><item><title><![CDATA[Dockerlize Django Application with Nginx, Postgres, etc]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://forum.all.tz/uid/4">@daudln</a> said in <a href="/post/4">Dockerlize Django Application with Nginx, Postgres, etc</a>:</p>
<blockquote>
<p dir="auto">Comming✍</p>
</blockquote>
<p dir="auto">hahaha</p>
]]></description><link>https://forum.all.tz/topic/3/dockerlize-django-application-with-nginx-postgres-etc</link><guid isPermaLink="true">https://forum.all.tz/topic/3/dockerlize-django-application-with-nginx-postgres-etc</guid><dc:creator><![CDATA[trevor]]></dc:creator><pubDate>Thu, 18 Apr 2024 16:23:31 GMT</pubDate></item><item><title><![CDATA[Nginx Latest stable version installation Guide]]></title><description><![CDATA[<p dir="auto">Such nice stuff</p>
]]></description><link>https://forum.all.tz/topic/2/nginx-latest-stable-version-installation-guide</link><guid isPermaLink="true">https://forum.all.tz/topic/2/nginx-latest-stable-version-installation-guide</guid><dc:creator><![CDATA[gideon]]></dc:creator><pubDate>Tue, 09 Apr 2024 12:36:17 GMT</pubDate></item></channel></rss>