booleanbites / houzi-support

Support forum repo for issues & bugs reported for Houzi Flutter App.
4 stars 0 forks source link

issues building apk #133

Closed rencetek closed 4 months ago

rencetek commented 5 months ago

found an issue and i am lost. was tring to run the app. same thing when I build

Because every version of houzi_package from path depends on intl 0.18.1 and every version of flutter_localizations from sdk depends on intl 0.18.0, houzi_package from path is incompatible with flutter_localizations from sdk.
So, because houzi depends on both flutter_localizations from sdk and houzi_package from path, version solving failed.
AdilSoomro commented 5 months ago

What is the flutter version you're using? What Houzi version are you using?

rencetek commented 5 months ago

I installed the latest version of Android Studio, Flutter, Dart, Java etc. Managed to fix most if the errors and compile the apk. Though right now I am facing this issue with network disconnecting even when WiFi is on.

Happens whenever I try to view a property. Also downloaded the Houzi app and added my site link to view it, same thing happened

On Fri, Jan 5, 2024, 3:34 PM Adil Soomro @.***> wrote:

What is the flutter version you're using? What Houzi version are you using?

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/133#issuecomment-1878775289, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATAWAD7IHZUK7LOA6MU3Z3YNAFNTAVCNFSM6AAAAABBOQHLISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZYG43TKMRYHE . You are receiving this because you authored the thread.Message ID: @.***>

AdilSoomro commented 5 months ago

What's your website address.

rencetek commented 5 months ago

quickpropertyfinder.net

On Sun, Jan 7, 2024, 8:09 AM Adil Soomro @.***> wrote:

What's your website address.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/133#issuecomment-1879977985, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATAWAGKRZ2CKQL3Z25JMNLYNJC4NAVCNFSM6AAAAABBOQHLISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZHE3TOOJYGU . You are receiving this because you authored the thread.Message ID: @.***>

AdilSoomro commented 5 months ago

I checked your website's rest api. You've some errors in woocommerce configuration. Ask your developer to look into woocommerce related fixes.

<br />
<b>Warning</b>:  Attempt to read property "order_awaiting_payment" on null in <b>/home/u501053509/domains/quickpropertyfinder.net/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php</b> on line <b>185</b><br />

You can view the error yourself with this url:

https://quickpropertyfinder.net/wp-json/houzez-mobile-api/v1/property?id=21446

To verify this, you can try disabling the woocommerce plugin on your website admin panel and open the app.

rencetek commented 5 months ago

Ok, I'll check it out. Thanks so far for your help.. kindly keep this issue open haha. Especially since I haven't touched the xcode iOS files.

On Sun, Jan 7, 2024, 8:27 AM Adil Soomro @.***> wrote:

I checked your website's rest api. You've some errors in woocommerce configuration. Ask your developer to look into woocommerce related fixes.

Warning: Attempt to read property "order_awaiting_payment" on null in /home/u501053509/domains/quickpropertyfinder.net/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php http://quickpropertyfinder.net/public_html/wp-content/plugins/woocommerce/includes/wc-cart-functions.php on line 185

You can view the error yourself with this url:

https://quickpropertyfinder.net/wp-json/houzez-mobile-api/v1/property?id=21446

To verify this, you can try disabling the woocommerce plugin on your website admin panel and open the app.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/133#issuecomment-1879980612, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATAWACHPAHFY4A2BKOIEJ3YNJE7BAVCNFSM6AAAAABBOQHLISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZZHE4DANRRGI . You are receiving this because you authored the thread.Message ID: @.***>

rencetek commented 5 months ago

Currently working on woocommerce. followed the link but couldn't find any errors, just a blank page. Also, Houzi Rest Api 1.3.8 refused to activate. Plugin could not be activated because it triggered a fatal error.. Could this also be a reason why I am having issues?

Still using 1.3.7.2 and have a whole bunch of notices, about 20 0f them

Notice: Function register_rest_route was called incorrectly. The REST API route definition for houzez-mobile-api/v1/my-properties is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback

AdilSoomro commented 5 months ago

Can your install anydesk and send the id, so we can assist you on this?

rencetek commented 5 months ago

Just managed to update to 1.3.8. Can we schedule this for tomorrow? Whats your timezone so we can do this on a time that's best for you.

AdilSoomro commented 5 months ago

This time today or tomorrow is fine with me.

The warnings from php, that you are seeing are because the Wordpress is in debug mode. Can you try disabling the debug from your wordpress config. It is the same file where you are suppose to add JWT Auth secret key.

rencetek commented 5 months ago

yeah i was the one that turned on debug mode since I couldn't find any error on the jwt page. I have made many adjustments, cleared many of the notices. About to turn off debug mode then maintenance mode.

Didnt find anything woocommerce related so, the app still wont display properties yet. Want to solve what I can to avoid pilling up issues here all the time

AdilSoomro commented 5 months ago

I no longer see the woocommerce issue on your app. I can view property details from your website. What is the error you are seeing now?

See attached video here:

https://github.com/booleanbites/houzi-support/assets/856233/3ed07d54-5b35-4ba5-b295-6761d5f478da

rencetek commented 5 months ago

You are right. Reinstalling the plugins and taking time to configure them paid off. Let me go through the Android files again and work on the icons. Thanks.

rencetek commented 5 months ago

I can confirm the app is running. Still have a few issues though. The app home and the home I designed via Houzi Builder does not match. Almost like something is forcing the app to ignore the configurations. Had to go through the configurations again to be sure. I do get some errors and warnings when running it on Android Studio.

Since I am using the latest Android Studio and Flutter, I also installed the latest Gradle plugin but I don't know if that's the reason.

Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times. Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: Errors limit exceeded. To receive all errors set com.sun.xml.bind logger to FINEST level. Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Note: /Users/***********/.pub-cache/hosted/pub.dev/flutter_uploader-3.0.0-beta.4/android/src/main/java/com/bluechilli/flutteruploader/FlutterUploaderPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Dart also has a few issues.

Project houzi-1.3.8: project SDK is not defined I did change the main folders though, so mu app isn't com.houzi.app but com.qpfinder.app.

Library Dart Packages has broken classes paths: /Users/***********/.pub-cache/hosted/pub.dev/flutter_plugin_android_lifecycle-2.0.17/lib /Users/***********/.pub-cache/hosted/pub.dev/flutter_secure_storage_linux-1.2.0/lib /Users/***********/.pub-cache/hosted/pub.dev/flutter_secure_storage_macos-3.0.1/lib /Users/***********/.pub-cache/hosted/pub.dev/geolocator_windows-0.2.2/lib [Fix]

rencetek commented 5 months ago

Update! Imported the houzi configuration to the builder again and when I wanted to export, I realized the configuration was not updated. Had to click export at every page for the new configuration to work a bit. Most of the errors has disappeared also. Dart has notified me to update some stuffs but I will wait on you guys.

Cheers

AdilSoomro commented 5 months ago

You need to follow documentation to do some stuff. For example, exporting configuration and importing to app needs some attention, checkout doc here: https://houzi-docs.booleanbites.com/houzi-builder/export_configuration

Same goes for changing icon, splash screen, app name, https://houzi-docs.booleanbites.com/app-setup/change_app_identifier.

rencetek commented 5 months ago

You need to follow documentation to do some stuff. For example, exporting configuration and importing to app needs some attention, checkout doc here: https://houzi-docs.booleanbites.com/houzi-builder/export_configuration

Same goes for changing icon, splash screen, app name, https://houzi-docs.booleanbites.com/app-setup/change_app_identifier.

Hey I have done all that. What I meant was, if you import your configuration.json from file to houzi builder to make changes, changes made across the pages will not reflect if you click on export button. You will have to click on export on each houzi builder page for the builder to over write the configuration.json file with your new info.

rencetek commented 5 months ago

The app is running. Will try and send you screenshot.

The home style I configured via Houzi builder and exported to Android Studio is different from what I get when I run the app. If i am wrong kindly correct me eg.

I may be wrong on the ad view but how about the others?

Open to correction. Flutter doctor found no issues,

https://github.com/booleanbites/houzi-support/assets/136710912/2b98003f-3d72-43f2-a3bb-574311a1c668

rencetek commented 5 months ago

https://github.com/booleanbites/houzi-support/assets/136710912/cfe4ae99-0640-4bcc-8f63-1f422d247847

Here is the one on the app. You can see it's a bit different from the Houzi builder.

I am open to corrections if I am the one that made mistakes

Also, gradle throws the following errors whenever I run the app

Running Gradle task 'assembleDebug'... Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level> Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

I have debugged most errors I encountered. Reason I told you earlier that my Android studio, Flutter, Dart, Android SDK and Graglugin versions are the latest stable versions

AdilSoomro commented 5 months ago

Did you increase the version number when exporting the config?

rencetek commented 5 months ago

Yes, I did. I always click the option to increase the number automatically. Anyways, will go the whole documentation again tonight and check if I have made a mistake. Though I fill if I can add the latest gradle to the project, it may work well.. as I am still having gradle issues

On Tue, Jan 9, 2024, 1:44 PM Adil Soomro @.***> wrote:

Did you increase the version number when exporting the config?

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/133#issuecomment-1883005756, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATAWAGTOMMX5D6NSFSIHYDYNU3RZAVCNFSM6AAAAABBOQHLISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTGAYDKNZVGY . You are receiving this because you authored the thread.Message ID: @.***>

AdilSoomro commented 5 months ago

If you are able to launch the app, then there's no issue with Gradle. You can simply ignore these warnings:

Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

These are coming from underlaying plugins. So simply ignore this.

You can also try removing the existing app from your device and install fresh to see the if the changes are reflecting or not.

rencetek commented 5 months ago

Thanks, I will! Will give you feedback tomorrow. Warm regards

On Tue, Jan 9, 2024, 5:33 PM Adil Soomro @.***> wrote:

If you are able to launch the app, then there's no issue with Gradle. You can simply ignore these warnings:

Warning: unexpected element (uri:"", local:"extension-level"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>

These are coming from underlaying plugins. So simply ignore this.

You can also try removing the existing app from your device and install fresh to see the if the changes are reflecting or not.

— Reply to this email directly, view it on GitHub https://github.com/booleanbites/houzi-support/issues/133#issuecomment-1883385370, or unsubscribe https://github.com/notifications/unsubscribe-auth/BATAWADY26AOIY3K6UEGWXTYNVWNZAVCNFSM6AAAAABBOQHLISVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBTGM4DKMZXGA . You are receiving this because you authored the thread.Message ID: @.***>

rencetek commented 4 months ago

Hello. Thanks for your patience.

So I figured out some of the issues today. I forgot to update the config on Houzi Api on Wordpress with the updated config on Android studio.

Everything is working almost perfectly now.

rencetek commented 4 months ago

I only have an issue regarding mailing. The contact agent form on the app isn't working, though the one on the website does. Care to help?