Please see the attached file.
Regards
Il giorno venerdì 18 giugno 2021 alle 05:30:54 UTC+2 Shai Almog ha scritto:
> What does the gradle file contain?
>
> FYI we have here binaries which you can use to workaround problems with
> gradle: https://github.com/codenameone/cn1-binaries/tree/master/android
>
> On Thursday, June 17, 2021 at 10:10:13 AM UTC+3 P5music wrote:
>
>> 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/c818ad80-2c78-4b65-a812-3c5474a1fbecn%40googlegroups.com.
apply plugin: 'com.android.application'
buildscript {
repositories {
google()
jcenter()
mavenLocal()
mavenCentral()
google()
mavenLocal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
}
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
dexOptions {
preDexLibraries = false
incremental false
jumboMode = true
javaMaxHeapSize "3g"
}
defaultConfig {
applicationId "com.myapp.app"
minSdkVersion 15
targetSdkVersion 30
versionCode 100
versionName "1.0"
}
sourceSets {
main {
aidl.srcDirs = ['src/main/java']
}
}
lintOptions {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
signingConfigs {
release {
storeFile file("keyStore")
storePassword "password"
keyAlias "androidKey"
keyPassword "password"
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard.cfg'
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
}
}
}
repositories {
google()
jcenter()
google()
mavenLocal()
mavenCentral()
flatDir{
dirs 'libs'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
compile 'com.android.support:support-v4:0.+' //this was in red
//noinspection GradleCompatible
implementation 'com.android.support:appcompat-v7:0.+' //this was in red
compile 'com.google.android.gms:play-services-auth:12.0.0'
compile 'com.google.android.gms:play-services-base:12.0.0'
compile 'com.google.android.gms:play-services-analytics:12.0.0'
compile 'com.google.android.gms:play-services-gcm:12.0.0'
compile 'com.google.android.gms:play-services-location:12.0.0'
compile 'com.google.android.gms:play-services-maps:12.0.0'
compile 'com.google.android.gms:play-services-ads:12.0.0'
}