Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70429

Impossible to compile Android application for prod with capacitor

$
0
0

@asalvatore wrote:

The issue

I try to build my Android app, build with Capacitor, for production. But whatever I do, the application which appears on my phone and which is compiled as a release always points to 192.168.0.41:8101, like if it was a livereload dev app.

What I’ve tried

Ionic build --prod
Ionic cap sync
npx ng build --aot=true --configuration="production"
npx cap sync

npx cap sync --prod

I also tries to suppress the current Android folder the run capacitor add again.

My configuration

Mac Mojave 10.14.1
Android Studio 3.6.2
Ionic 5.0.0
Capacitor 2.0.0
Node 13.10.1
My capacitor.config.json

{
 "appId": "space.filex.mobile",
 "appName": "FileX",
 "bundledWebRuntime": false,
 "npmClient": "npm",
 "webDir": "www",
 "cordova": {},
 "server": {
   "url": "http://192.168.0.41:8101",
   "cleartext": true
 }
}

Thanks for you help.
Alex

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70429

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>