I put

compileSdkVersion 30
buildToolsVersion "30.0.3"

in the gradle file, because I found that those fields were set to 0, like 
also

minSdkVersion 15
targetSdkVersion 30

they were 0 too.

In the txt attachment you can see the issue.
In the SDK manager I downloaded all the necessary.
On the internet someone says 

>From Android Studio go to: Tools >> Android >> SDK Manager

Select and install "Extras|Android Support Repository" 
but I do not find it.

How to fix and compile?

Thanks in advance

Il giorno sabato 5 giugno 2021 alle 06:11:35 UTC Shai Almog ha scritto:

> I can't read anything there. Usually Android studio offers an option to 
> "fix" projects when there's a failure like that. As far as I know we don't 
> use R8 so I'm guessing it was ignored by newer versions of Android Studio.
>
> On Friday, June 4, 2021 at 9:28:06 AM UTC+3 P5music wrote:
>
>> I am using a Arch Linux system so the AndroidStudio installation is 
>> curated by the system itself. So I do not know what do you mean about two 
>> versions of it, but I provide some further information.
>> Android Studio 4.2.1
>> Build #AI-202.7660.26.42.7351085, built on May 10, 2021
>> Runtime version: 11.0.8+0-b944-P17168821 amd64
>> VM: OpenJDK 64-Bit Server VM by N/A
>> Linux 5.12.5-zen1-1-zen
>> GC: G1 Young Generation, G1 Old Generation
>> Memory: 1280M
>> Cores: 4
>> Registry: external.system.auto.import.disabled=true
>> Current Desktop: GNOME 40.1.0 
>> X11
>> Garuda Linux; ID version: rolling
>>
>> What do you read inside the log files to say that? What's the issue about 
>> the build?
>>
>> Regards
>> Il giorno venerdì 4 giugno 2021 alle 03:15:39 UTC Shai Almog ha scritto:
>>
>>> Do you have more than one version of Android Studio installed?
>>> Which versions are installed on your system?
>>>
>>> On Thursday, June 3, 2021 at 7:48:52 PM UTC+3 P5music wrote:
>>>
>>>> I have to run a slightly modified version of my CN1 app on the Android 
>>>> emulator.
>>>> I performed a local Android build on a Linux machine, as I did for the 
>>>> iOS build on a OSX machine.
>>>> The build failed with errors that can be found in the text attachments.
>>>>
>>>> log1 is from AndroidStudio subsequent build.
>>>> log2 and log3 are from IntelliJ IDEA.
>>>>
>>>> Thanks in advance
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7edfeeb2-5c5f-4e1c-873d-abdd7342a8e3n%40googlegroups.com.
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find any version that matches com.android.support:support-v4:0.+.
     Versions that do not match:
       - 28.0.0
       - 28.0.0-rc02
       - 28.0.0-rc01
       - 28.0.0-beta01
       - 28.0.0-alpha3
       - + 51 more
     Searched in the following locations:
       - 
https://dl.google.com/dl/android/maven2/com/android/support/support-v4/maven-metadata.xml
       - 
https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml
       - file:/home/pc/.m2/repository/com/android/support/support-v4/
       - 
https://repo.maven.apache.org/maven2/com/android/support/support-v4/maven-metadata.xml
       - 
file:/home/pc/sviluppo/myapp/android/target/myapp-android-1.0-SNAPSHOT-android-source/app/libs/
     Required by:
         project :app
   > Could not find any version that matches 
com.android.support:appcompat-v7:0.+.
     Versions that do not match:
       - 28.0.0
       - 28.0.0-rc02
       - 28.0.0-rc01
       - 28.0.0-beta01
       - 28.0.0-alpha3
       - + 50 more
     Searched in the following locations:
       - 
https://dl.google.com/dl/android/maven2/com/android/support/appcompat-v7/maven-metadata.xml
       - 
https://jcenter.bintray.com/com/android/support/appcompat-v7/maven-metadata.xml
       - file:/home/pc/.m2/repository/com/android/support/appcompat-v7/
       - 
https://repo.maven.apache.org/maven2/com/android/support/appcompat-v7/maven-metadata.xml
       - 
file:/home/pc/sviluppo/myapp/android/target/myapp-android-1.0-SNAPSHOT-android-source/app/libs/
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at 
https://docs.gradle.org/current/userguide/declaring_repositories.html


Reply via email to