Astroa7m / RemoteWidget

Schedule image downloading/displaying in Glance widget with WorkManager API
15 stars 2 forks source link

Can't sync or build project #1

Closed ajans closed 2 years ago

ajans commented 2 years ago

Project-build ./gradlew clean assembleDebug failed with the following output:

> Configure project :app
Evaluating project ':app' using build file '/home/aj/GIT/private/RemoteWidget/app/build.gradle'.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/aj/GIT/private/RemoteWidget/app/build.gradle' line: 26

* What went wrong:
A problem occurred evaluating project ':app'.
> Parameter specified as non-null is null: method com.android.build.gradle.internal.dsl.BaseFlavor.buildConfigField, parameter value

Also, in Android Studio, the gradle-editor could not resolve the symbols Properties and FileInputStream. Other projects in Android Studio work fine.

Do you know what could be the issue here? I am using Android Studio stable:

Android Studio Chipmunk | 2021.2.1 Patch 2
Build #AI-212.5712.43.2112.8815526, built on July 10, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-46-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.wakatime.intellij.plugin (14.1.0), org.jetbrains.kotlin (212-1.7.10-release-333-AS5457.46), com.nbadal.ktlint (0.10.0), io.sympli.idea.plugin (1.3.8), com.developerphil.adbidea (1.6.6)
Current Desktop: ubuntu:GNOME
Astroa7m commented 2 years ago

You should grab an API key from UnSplash API and then place it in your local.properties file like so

CLIENT_ID = "your_api_key"