hagaygo / OpenWrtManager

Mobile app for interacting with your OpenWrt device.
GNU General Public License v3.0
145 stars 10 forks source link

Cannot build #17

Closed mips171 closed 2 years ago

mips171 commented 2 years ago

Hey, I am having a really hard time getting this to build. Maybe because I am a Flutter noob.

I have this in my key.properties file, and followed the steps https://flutter.dev/docs/deployment/android#create-an-upload-keystore but still get this error when trying to build either with flutter run or Android Studio. Any suggestions?

key.properties:

storePassword=openwrt
keyPassword=openwrt
keyAlias=upload
storeFile=/Users/bbmian/upload-keystore.jks

output

FAILURE: Build failed with an exception.

* Where:
Build file '/Users/bbmian/code/OpenWRTManager/android/app/build.gradle' line: 59

* What went wrong:
A problem occurred evaluating project ':app'.
> path may not be null or empty string. path=''
mips171 commented 2 years ago

Editing android/app/build.gradle:

           //storeFile file(keystoreProperties['storeFile'])
           storeFile file("upload-keystore.jks")  

Seems to have allowed it to build.

hagaygo commented 2 years ago

I am using visual studio code. For debug compile current files works fine. For creating a release i inject my keystore data using environment variables.