• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Development Client Development Android TV Development Building APK - Error AAPT: error: resource string/app_name_debug not found

     
    • 0 Vote(s) - 0 Average

    Building APK - Error AAPT: error: resource string/app_name_debug not found

    Skankhunt42
    Offline

    Junior Member

    Posts: 19
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #1
    2023-08-01, 09:53 PM
    Hello,

    i wanted to clone the github repo of the Android TV Client and build an APK out of it.
    Gradle Sync and Gradle Build are running fine, deploying the debug build to AVD also works.

    When building an APK it gives me the following error:

    Code:
    ...\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:4: AAPT: error: resource string/app_name_debug (aka org.jellyfin.androidtv.debug.test:string/app_name_debug) not found.

    jellyfin-androidtv\app\build\intermediates\incremental\debugAndroidTest\mergeDebugAndroidTestResources\merged.dir\values\values.xml:4 looks as follows:

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
        <string name="app_id" translatable="false">org.jellyfin.androidtv.debug</string>
        <string name="app_name" translatable="false">@string/app_name_debug</string>
        <string name="app_search_suggest_authority" translatable="false">org.jellyfin.androidtv.debug.content</string>
        <string name="app_search_suggest_intent_data" translatable="false">content://org.jellyfin.androidtv.debug.content/intent</string>
    </resources>

    The file res/values/strings/strings.xml contains the app_name_debug string:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="MissingTranslation">
        <string name="app_name_release" translatable="false" tools:ignore="UnusedResources">Jellyfin</string>
        <string name="app_name_debug" translatable="false" tools:ignore="UnusedResources">Jellyfin Debug</string>


    Has anyone also had this issue?

    I am not able to find the issue.

    Thank you!
    niels
    Offline

    Core Team

    Posts: 249
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #2
    2023-08-02, 07:21 AM
    We recently released a new beta version so you can easily get an up-to-date signed APK from GitHub: https://github.com/jellyfin/jellyfin-and...6.0-beta.1

    If you still want to build it yourself it should be relatively easy:

    1. Clone the project from GitHub
    2. Open it in Android Studio (must be version 2022.3.1 giraffe or newer)
    3. Let it index the project,
    4. Press the build button

    The error you're getting could be caused by an invalid Android Studio version, corrupt caches or invalid changes. I'd try to clean the project with the Gradle clean task (in terminal: ./gradlew clean) and maybe try the "invalidate caches" option in Android Studio (in the File menu).
    Skankhunt42
    Offline

    Junior Member

    Posts: 19
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #3
    2023-08-03, 09:05 PM (This post was last modified: 2023-08-03, 09:09 PM by Skankhunt42. Edited 3 times in total.)
    (2023-08-02, 07:21 AM)niels Wrote: We recently released a new beta version so you can easily get an up-to-date signed APK from GitHub: https://github.com/jellyfin/jellyfin-and...6.0-beta.1

    If you still want to build it yourself it should be relatively easy:

    1. Clone the project from GitHub
    2. Open it in Android Studio (must be version 2022.3.1 giraffe or newer)
    3. Let it index the project,
    4. Press the build button

    The error you're getting could be caused by an invalid Android Studio version, corrupt caches or invalid changes. I'd try to clean the project with the Gradle clean task (in terminal: ./gradlew clean) and maybe try the "invalidate caches" option in Android Studio (in the File menu).

    Thanks for your reply.

    I followed every of your steps.

    Cloned the Git and Opened in Android Studio, didnt make any changes to the source code and ran a build.
    Build runs fine as previously.

    Building an APK still gave me these resource linking failure.

    I
    ve cleaned the Gradle with ./gradlew clean and also ran invalidate caches and checked all checkboxes.

    Build runs still fine, buidling an APK still gives me resource linking error as before.

    I have tried it on another system with freshly installed latest Android Studio, did all the same again and got the same error.

    Android Studio Version:

    https://imgur.com/a/YMUZJKQ
    niels
    Offline

    Core Team

    Posts: 249
    Threads: 4
    Joined: 2023 Jun
    Reputation: 12
    Country:Netherlands
    #4
    2023-08-04, 07:13 PM
    How exactly are you building the APK? Are you directly deploying to a device from Android Studio with the run button or using some other method?
    Skankhunt42
    Offline

    Junior Member

    Posts: 19
    Threads: 5
    Joined: 2023 Jun
    Reputation: 0
    Country:Germany
    #5
    2023-08-06, 01:19 PM
    (2023-08-04, 07:13 PM)niels Wrote: How exactly are you building the APK? Are you directly deploying to a device from Android Studio with the run button or using some other method?

    Over the Build Context Menu Build Bundle(s)/APK. 
    Deploying to AVD works fine.
    vittatus
    Offline

    Junior Member

    Posts: 1
    Threads: 0
    Joined: 2024 May
    Reputation: 0
    #6
    2024-05-29, 05:06 PM
    I get the same error, could you solve it?

    thanks!
    xaque
    Offline

    Member

    Posts: 75
    Threads: 1
    Joined: 2023 Jun
    Reputation: 3
    Country:United States
    #7
    2024-08-05, 06:14 PM
    Getting the same error as others, would really appreciate any kind of solution to this.
    SethBacon
    Offline

    Member

    Posts: 51
    Threads: 3
    Joined: 2023 Nov
    Reputation: 5
    Country:Canada
    #8
    2024-08-21, 08:37 PM
    Make sure youre using the Release Build Variant, click Build > Select Build Variant
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode