Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all 49260 articles
Browse latest View live

Back button doesn't work correctly in tab page

$
0
0

@Bboypluss wrote:

Hi! I have an issue,i try to explain in simple way:
have two pages.
page1(no tabs)----->page2(with 3 tabs)

main.html
here the main-html of the tabs

<ion-content>
  <ion-tabs class="TabsTop" tabsPlacement="top" selectedIndex="1">
   <ion-tab tabTitle="Evento" [root]="eventInfo" [rootParams]="event"></ion-tab>
    <ion-tab tabTitle="Artisti" [root]="artists" [rootParams]="event"></ion-tab>
    <ion-tab tabTitle="Location" [root]="location" [rootParams]="event"></ion-tab>
  </ion-tabs>
</ion-content>

tab1

<ion-header>
   header here
</ion-header>
<ion-content>
   content here
</ion-content>

tab2

<ion-header>
   header here
</ion-header>
<ion-content>
   content here
</ion-content>

tab3

<ion-header>
   header here
</ion-header>
<ion-content>
   content here
</ion-content>

N.B
these 3 tabs have 3 different header because i need to have different icon on the header for each tab( different function,different behaviour)
when i go to page 2 my back button is disappeared,in EVERY tab.I think the problem is that every tab has its own navcontroller.
if i inspect html and i find the back button if i put display block,the back button appears but when i click to it i get this error.

52

While in the console i get

nav-controller-base.js:375 You can't remove all the pages in the navigation stack. nav.pop() is probably called too many times. Tab {_config: Config, _elementRef: ElementRef, _renderer: RendererAdapter, _componentName: undefined, parent: Tabs, …} <ion-tab role=​"tabpanel" tabtitle=​"Artisti" ng-reflect-root=​"function ArtistsTabPage(app, n" ng-reflect-root-params=​"[object Object]​" ng-reflect-tab-title=​"Artisti" id=​"tabpanel-t2-1" aria-labelledby=​"tab-t2-1" class=​"show-tab" aria-hidden=​"false">​…​</ion-tab>​
NavControllerBase._postViewInit @ nav-controller-base.js:375
(anonymous) @ nav-controller-base.js:260
t.invoke @ polyfills.js:3
onInvoke @ core.js:4760
t.invoke @ polyfills.js:3
r.run @ polyfills.js:3
(anonymous) @ polyfills.js:3
t.invokeTask @ polyfills.js:3
onInvokeTask @ core.js:4751
t.invokeTask @ polyfills.js:3
r.runTask @ polyfills.js:3
o @ polyfills.js:3
e.invokeTask @ polyfills.js:3
p @ polyfills.js:2
v @ polyfills.js:2

How can i solve this?
thanks in advice!

Posts: 1

Participants: 1

Read full topic


Gradle 5.0. Please use Task.doLast(Action) instead

$
0
0

@pasupathi022 wrote:

cordova build android --release
Android Studio project detected

[16:39:12] lint finished in 4.88 s
ANDROID_HOME=C:\Users\pasupathi\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
:wrapper

BUILD SUCCESSFUL
in 27s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now
published.

The Task.leftShift(Closure) method has been deprecated and is scheduled to be re
moved in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_janvx8k2noddu2hzr61mcck9.run(D:\Users\pasupathi\Desktop\cal - C
opy\platforms\android\app\build.gradle:143)

Posts: 1

Participants: 1

Read full topic

TypeError: formdata.set is not a function

$
0
0

@charlestsmith wrote:

Hello All,
I’m using FormData for one of my ajax call in Ionic.
var formdata = new FormData();
formdata.set(‘action’, “myActionName”);
formdata.set(‘senderId’, data.senderId);
formdata.set(‘friendId’, data.friendId);

its working perfectly okay on Android but on iOS it says:
TypeError: formdata.set is not a function. (In ‘formdata.set(‘action’, “myActionName”)’, ‘formdata.set’ is undefined)

Anyone know how to define the formdata.set?

Thanks in Advance!

Posts: 1

Participants: 1

Read full topic

Response to preflight request doesn't pass access control check

$
0
0

@chambahr wrote:

I have an app am working on. It worked fine for some request i made to the server and of late I get this error
Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘null’ is therefore not allowed access.
I have a working request with the same method I used but now can’t figure out what when wrong.

 /*
    * User Authentication Authorizer Bearer
    */
    this.requestOptions = new RequestOptions({
            headers: new Headers({
                'Authorization': `Bearer ${this.authService.getAuthUserToken()}`
            })
            
        });

Posts: 1

Participants: 1

Read full topic

Telegram integration to app for sharing purpose

$
0
0

@SwapnilPatil wrote:

Can anyone tell about how to integrate telegram with ionic app?or any cordova plugins that can help me to integrate Telegam with my ionic 3 app for sharing.

Posts: 1

Participants: 1

Read full topic

Ionic 3 new update issue

$
0
0

@pinoyprogs wrote:

have tried to used the new and latest verion of ionic now?
its compiles really slow like takes 5 mins to finished it.
what happen?
anyone had the same experience as mine???

Posts: 1

Participants: 1

Read full topic

How to increase the time of connection timeout on livereload?

$
0
0

@Dovel wrote:

Sometimes run the App on the device with ionic cordova run android -lc a “Application Error” displayed on the device. The connection to the server was unsuccessful (<myUrl>) But after a few seconds, the app is loaded. I see it in the background. The DOM is ready. But the timeout for the connection error has expired.
If I close this error message with “ok” the app close.

Is there a way to speed it up? Or increase the timeout value?

Btw. Sometimes it works great. But the most of time, it tooks too long to load. Until the connection timeout.

Log

[16:26:56]  console.log: deviceready has not fired after 5 seconds.
[16:26:56]  console.log: Channel not fired: onDOMContentLoaded
<Here, after a few second the connnection timeout error is displayed.>
[16:27:24]  console.log: Angular is running in the development mode. Call enableProdMode() to enable the production
            mode.
<The app is loaded.>

I already reinstalled the platform and plugins.

It’s really annoying that the App is 2 seconds after the connection error ready. argh… Ionic should set the timeout time from 5 to 10 seconds!

Posts: 1

Participants: 1

Read full topic

Appseed.io

$
0
0

@lepmpl wrote:

Hello,
Can anyone give feedback on Appseed? Just curious if the templates/services they offer are quality or not.

Thanks!

Posts: 1

Participants: 1

Read full topic


Run android app in browser

$
0
0

@stphnrdmr wrote:

I have decompiled an apk file and found a compiled ionic app inside. Is there a way to run this app in a browser instead of a device?

Posts: 1

Participants: 1

Read full topic

Launch Navigation, Multiple Destinatiosn

$
0
0

@travBrad wrote:

Hey everyone…

I’m building an interesting app that uses maps. I have a set of map points that I need the use to navigate to. How do I launch Google maps from my ionic app with an added route way point. So essentially two destinations?

Thanks very much!
Trav

Posts: 1

Participants: 1

Read full topic

How to change the search icon color of the ion -searchbar?

$
0
0

@setu1421 wrote:

I am using the ion-searchbar and it has a default search icon. The icon is a background image. I want to change the color of the icon to red. I saw the background image for the search icon using chrome developer tools:

url("data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='%235b5b5b'%20d='M337.509,305.372h-17.501l-6.571-5.486c20.791-25.232,33.922-57.054,33.922-93.257C347.358,127.632,283.896,64,205.135,64C127.452,64,64,127.632,64,206.629s63.452,142.628,142.225,142.628c35.011,0,67.831-13.167,92.991-34.008l6.561,5.487v17.551L415.18,448L448,415.086L337.509,305.372z%20M206.225,305.372c-54.702,0-98.463-43.887-98.463-98.743c0-54.858,43.761-98.742,98.463-98.742c54.7,0,98.462,43.884,98.462,98.742C304.687,261.485,260.925,305.372,206.225,305.372z'/></svg")

According to this answer, i changed the fill to ‘FF0000’ but the color of the icon did not change to red.

I tried using below:

.searchbar-search-icon {
   background-image: url("data:image/svg+xml;charset=utf-8,<svg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20512%20512'><path%20fill='FF0000'%20d='M337.509,305.372h-17.501l-6.571-5.486c20.791-25.232,33.922-57.054,33.922-93.257C347.358,127.632,283.896,64,205.135,64C127.452,64,64,127.632,64,206.629s63.452,142.628,142.225,142.628c35.011,0,67.831-13.167,92.991-34.008l6.561,5.487v17.551L415.18,448L448,415.086L337.509,305.372z%20M206.225,305.372c-54.702,0-98.463-43.887-98.463-98.743c0-54.858,43.761-98.742,98.463-98.742c54.7,0,98.462,43.884,98.462,98.742C304.687,261.485,260.925,305.372,206.225,305.372z'/></svg>")!important;
  }

Can anyone point me out what should be the way to change the color of the icon?

Posts: 1

Participants: 1

Read full topic

Who can help build edit&build app

navPush does not work

$
0
0

@marvinug wrote:

I have a search engine and two lists, when I click on any word of the search engine result, it redirects me to the product detail, but if it spikes on the product it does not redirect me to the detail as such.
On another page, I redirect the product detail but not the search result.
In short, the navPush only works for one and not for the other.

Este es mi HTML

<ion-refresher (ionRefresh)=“prodProv.RefrescaRecomendaciones($event)” (ionRefresh)=“prodProv.RefrescaPromosHome($event)”>


<ion-list class="resBusq">
  <ion-item *ngFor="let item of prodProv.resultados"
                  [navPush]="detalleProducto"
                  [navParams]="{ producto: item }">
    {{ item.name }}
  </ion-item>
</ion-list>

Promociones

{{ promo.name }}
{{ promo.nameCat }}
{{ promo.description }}
₡ {{ promo.PrecioFinal }}

Recomendaciones

{{ recomendacion.name }}
{{ recomendacion.nameCat }}
{{ recomendacion.description }}
₡ {{ recomendacion.PrecioFinal }}

Este es mi servicio

constructor(public navCtrl: NavController, public navParams: NavParams, private carProv:CompraProvider, public toastCtrl: ToastController,
private alertCtrl:AlertController, private logProv:LoginProvider, private regProv:RegistroProvider) {

this.producto = this.navParams.get("producto");//Aquí estamos trayendo el producto

}

Posts: 1

Participants: 1

Read full topic

Build App for iOs without a Mac

$
0
0

@danxc wrote:

I’m finishing a application using Ionic (Version: 3.20.0).
I’m already deploy to Android, but now i want to deploy to iOs.
I’ve seen this tutorial, but i dont if this works yet.
Anyone did this process recently?

I’m using Linux Ubuntu 16.04 LTS.

Posts: 2

Participants: 2

Read full topic

Search on nested object issue

$
0
0

@amad4biz wrote:

can anyone here please guide how touse the search component in a nested objects such as :

users:[ { 
          user1: {  firstname: 'John',
           lastname 'Doe'
       roles: {

         role1: 'Manager',
       role2: 'Admin'
    },

 user2: {  firstname: 'Jane',
    lastname 'Doe'
   roles: {

       role1: 'Secretary',
       role2: 'stadf'
    }
  }]

Thank in advance for helping

Posts: 1

Participants: 1

Read full topic


Problem with MyApp (for auth service)

$
0
0

@RaihanaMj wrote:

Error: StaticInjectorError(AppModule)[MyApp -> AuthService]:
StaticInjectorError(Platform: core)[MyApp -> AuthService]:
NullInjectorError: No provider for AuthService!
at NullInjector.get (http://localhost:8100/build/vendor.js:1376:19)
at resolveToken (http://localhost:8100/build/vendor.js:1674:24)
at tryResolveToken (http://localhost:8100/build/vendor.js:1616:16)
at StaticInjector.get (http://localhost:8100/build/vendor.js:1484:20)
at resolveToken (http://localhost:8100/build/vendor.js:1674:24)
at tryResolveToken (http://localhost:8100/build/vendor.js:1616:16)
at StaticInjector.get (http://localhost:8100/build/vendor.js:1484:20)
at resolveNgModuleDep (http://localhost:8100/build/vendor.js:11228:25)
at NgModuleRef
.get (http://localhost:8100/build/vendor.js:12461:16)
at resolveDep (http://localhost:8100/build/vendor.js:12951:45)

iam having this error… i did import the authservice and put it also in the providers but this appears… how do i solve this? :frowning:

Posts: 1

Participants: 1

Read full topic

Error Building Android App

$
0
0

@JuanM96 wrote:

hi. when i do ionic serve all works greats but when i try to build my app doing ionic cordova build android i get a compiler error:

Running app-scripts build: --platform android --target cordova
[01:22:10] build dev started …
[01:22:11] clean started …
[01:22:11] clean finished in 15 ms
[01:22:11] copy started …
[01:22:11] deeplinks started …
[01:22:11] deeplinks finished in 31 ms
[01:22:11] transpile started …
[01:22:16] transpile finished in 5.10 s
[01:22:16] preprocess started …
[01:22:16] preprocess finished in 1 ms
[01:22:16] webpack started …
[01:22:16] copy finished in 5.31 s
[01:22:24] webpack finished in 8.02 s
[01:22:24] sass started …
Without from option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined to prevent this warning.
[01:22:25] sass finished in 1.24 s
[01:22:25] postprocess started …
[01:22:25] postprocess finished in 15 ms
[01:22:25] lint started …
[01:22:25] build dev finished in 14.52 s

cordova build android
ANDROID_HOME=C:\Users\juan_\AppData\Local\Android\sdk
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_144
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

    at build_16r7wjzkhkdwfmkvx40iwi3xo.run(F:\Repos Ionic\PP-Tp1\platforms\android\build.gradle:141)

publishNonDefault is deprecated and has no effect anymore. All variants are now published.
:preBuild
UP-TO-DATE
:CordovaLib:preBuild
UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:preDebugBuild

UP-TO-DATE
:CordovaLib:compileDebugAidl
UP-TO-DATE
:compileDebugAidl
UP-TO-DATE
:CordovaLib:packageDebugRenderscript NO-SOURCE
:compileDebugRenderscript

UP-TO-DATE
:checkDebugManifest UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:prepareLintJar UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:generateDebugResValues

UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:mergeDebugResources
UP-TO-DATE

:createDebugCompatibleScreenManifests UP-TO-DATE
:processDebugManifest
UP-TO-DATE

:splitsDiscoveryTaskDebug UP-TO-DATE
:CordovaLib:platformAttrExtractor UP-TO-DATE
:CordovaLib:processDebugResources
UP-TO-DATE

:processDebugResources
UP-TO-DATE

:generateDebugSources UP-TO-DATE
:CordovaLib:generateDebugBuildConfig
UP-TO-DATE

:CordovaLib:prepareLintJar UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:javaPreCompileDebug UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac
An exception has occurred in the compiler (1.8.0_144). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you.
java.lang.NoClassDefFoundError: com/sun/tools/javac/tree/JCTree$JCLabeledStatement
at com.sun.tools.javac.comp.Resolve.(Resolve.java:122)
at com.sun.tools.javac.comp.Resolve.instance(Resolve.java:158)
at com.sun.tools.javac.comp.Check.(Check.java:111)
at com.sun.tools.javac.comp.Check.instance(Check.java:99)
at com.sun.tools.javac.code.Types.(Types.java:118)
at com.sun.tools.javac.code.Types.instance(Types.java:104)
at com.sun.tools.javac.jvm.ClassReader.(ClassReader.java:287)
at com.sun.tools.javac.jvm.ClassReader.instance(ClassReader.java:249)
at com.sun.tools.javac.main.JavaCompiler.(JavaCompiler.java:348)
at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:88)
at com.sun.tools.javac.main.Main.compile(Main.java:485)
at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:49)
at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:99)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)
at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:37)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)
at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:39)
at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilationFinalizer.execute(IncrementalCompilationFinalizer.java:24)
at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:198)
at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:129)
at com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$IncrementalTaskAction.doExecute(DefaultTaskClassInfoStore.java:173)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:134)
at org.gradle.api.internal.project.taskfactory.DefaultTaskClassInfoStore$StandardTaskAction.execute(DefaultTaskClassInfoStore.java:121)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:122)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:111)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:63)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:88)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:124)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:80)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:105)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:99)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:625)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:580)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:99)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)

    at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.tree.JCTree$JCLabeledStatement
at java.net.URLClassLoader$1.run(URLClassLoader.java:370)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
… 70 more
Caused by: java.util.zip.ZipException: invalid LOC header (bad signature)
at java.util.zip.ZipFile.read(Native Method)
at java.util.zip.ZipFile.access$1400(ZipFile.java:60)
at java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:734)
at sun.misc.Resource.getBytes(Resource.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:462)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
FAILED
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
… 75 more

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:CordovaLib:compileDebugJavaWithJavac’.

Compilation failed; see the compiler error output for details.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Here my Ionic Info:
cli packages: (C:\Users\juan_\AppData\Roaming\npm\node_modules)

@ionic/cli-utils  : 1.19.2
ionic (Ionic CLI) : 3.20.0

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.1.9
Cordova Platforms  : android 6.4.0
Ionic Framework    : ionic-angular 3.9.2

System:

Android SDK Tools : 26.1.1
Node              : v8.4.0
npm               : 5.3.0
OS                : Windows 10

Environment Variables:

ANDROID_HOME : C:\Users\juan_\AppData\Local\Android\sdk

Misc:

backend : pro

here my plugins:

cordova-plugin-device 2.0.2 “Device”
cordova-plugin-ionic-keyboard 2.0.5 “cordova-plugin-ionic-keyboard”
cordova-plugin-ionic-webview 1.2.0 “cordova-plugin-ionic-webview”
cordova-plugin-splashscreen 5.0.2 “Splashscreen”
cordova-plugin-whitelist 1.3.3 “Whitelist”

i tried everything but nothing works … help!

Posts: 1

Participants: 1

Read full topic

Apk Build error

$
0
0

@pasupathi022 wrote:

build error


D:\Users\pasupathi\Desktop\cal - Copy>ionic cordova build --release android
Running app-scripts build: --platform android --target cordova
[13:05:36]  build dev started ...
[13:05:36]  clean started ...
[13:05:36]  clean finished in 5 ms
[13:05:36]  copy started ...
[13:05:36]  deeplinks started ...
[13:05:36]  deeplinks finished in 17 ms
[13:05:36]  transpile started ...
[13:05:45]  transpile finished in 8.67 s
[13:05:45]  preprocess started ...
[13:05:45]  preprocess finished in 1 ms
[13:05:45]  webpack started ...
[13:05:46]  copy finished in 9.43 s
[13:05:54]  webpack finished in 9.08 s
[13:05:54]  sass started ...
Without `from` option PostCSS could generate wrong source map and will not find
Browserslist config. Set it to CSS file path or to `undefined` to prevent this w
arning.
[13:06:02]  sass finished in 7.32 s
[13:06:02]  postprocess started ...
[13:06:02]  postprocess finished in 23 ms
[13:06:02]  lint started ...
[13:06:02]  build dev finished in 25.24 s
> cordova build android --release
Android Studio project detected

[13:06:07]  lint finished in 5.47 s
ANDROID_HOME=C:\Users\pasupathi\AppData\Local\Android\Sdk
JAVA_HOME=C:\Program Files\Java\jdk1.8.0_162
studio
:wrapper


BUILD SUCCESSFUL in 18s
1 actionable task: 1 executed

Subproject Path: CordovaLib
Subproject Path: app
publishNonDefault is deprecated and has no effect anymore. All variants are now
published.

The Task.leftShift(Closure) method has been deprecated and is scheduled to be re
moved in Gradle 5.0. Please use Task.doLast(Action) instead.
        at build_janvx8k2noddu2hzr61mcck9.run(D:\Users\pasupathi\Desktop\cal - C
opy\platforms\android\app\build.gradle:143)

:CordovaLib:preBuild
 UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseAidl

:CordovaLib:compileReleaseRenderscript

:CordovaLib:checkReleaseManifest

:CordovaLib:generateReleaseBuildConfig

:CordovaLib:prepareLintJar

:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources

:CordovaLib:packageReleaseResources

:CordovaLib:platformAttrExtractor

:CordovaLib:processReleaseManifest

:CordovaLib:javaPreCompileRelease

:CordovaLib:processReleaseJavaRes
 NO-SOURCE
:app:preBuild
 UP-TO-DATE
:app:preReleaseBuild

:app:compileReleaseAidl

:CordovaLib:packageReleaseRenderscript

NO-SOURCE
:app:compileReleaseRenderscript

:app:checkReleaseManifest

:app:generateReleaseBuildConfig

:app:prepareLintJar
:app:generateReleaseResValues
:app:generateReleaseResources
:app:mergeReleaseResources

:app:createReleaseCompatibleScreenManifests

:app:processReleaseManifest

:app:splitsDiscoveryTaskRelease

:app:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseShaders

:CordovaLib:compileReleaseShaders
:CordovaLib:generateReleaseAssets
:CordovaLib:mergeReleaseAssets

:app:mergeReleaseShaders

:app:compileReleaseShaders

:app:generateReleaseAssets
:app:mergeReleaseAssets

:CordovaLib:compileReleaseNdk NO-SOURCE
:CordovaLib:mergeReleaseJniLibFolders

:CordovaLib:transformNativeLibsWithMergeJniLibsForRelease

:CordovaLib:transformNativeLibsWithStripDebugSymbolForRelease

:CordovaLib:transformNativeLibsWithIntermediateJniLibsForRelease

:app:mergeReleaseJniLibFolders

:app:processReleaseJavaRes
 NO-SOURCE
:CordovaLib:processReleaseResources

:CordovaLib:generateReleaseSources

:CordovaLib:compileReleaseJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease
:app:processReleaseResources
:app:generateReleaseSources
:app:javaPreCompileRelease
:app:compileReleaseJavaWithJavac
:app:compileReleaseSources
:app:transformClassesWithStackFramesFixerForRelease
:app:transformClassesWithDesugarForRelease
:app:transformClassesWithPreDexForRelease
:app:transformDexWithDexForRelease FAILED
42 actionable tasks: 42 executed
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.pro
cess.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.
common.process.ProcessException: No files to pass to dex.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 11s
(node:7068) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with ex
it code 1 Error output:
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.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.pro
cess.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.
common.process.ProcessException: No files to pass to dex.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 1m 11s
    at ChildProcess.whenDone (D:\Users\pasupathi\Desktop\cal - Copy\platforms\an
droid\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:7068) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This
error originated either by throwing inside of an async function without a catch
block, or by rejecting a promise which was not handled with .catch(). (rejection
 id: 1)
(node:7068) [DEP0018] DeprecationWarning: Unhandled promise rejections are depre
cated. In the future, promise rejections that are not handled will terminate the
 Node.js process with a non-zero exit code.


D:\Users\pasupathi\Desktop\cal - Copy>

Posts: 1

Participants: 1

Read full topic

PSD into Ionic 3 HTML

How to validate year with format yyyy in ts?

$
0
0

@anespa wrote:

Friends,

I need to add validation for year eg: 2007 , how it can write ?

eg: for no i can write as


static isValid(control: FormControl): any {

       if(isNaN(control.value)){
           return {
               "not a number": true
           };
       }

       return null;
   }

but how to validate yyyy ? also check they will not provide years more than current year. eg must allow upto 2018 , not allow 2019 now…

please advise

Thanks

Anes

Posts: 1

Participants: 1

Read full topic

Viewing all 49260 articles
Browse latest View live


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