Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Phonegap-plugin-push added, and now no build for android possible!

$
0
0

@sandips
It does not work.

After calling ionic build android I get this error:

...
:compileDebugJavaT:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:11: error: package com.almworks.sqlite4java does not exist
import com.almworks.sqlite4java.*;
^
T:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:365: error: cannot find symbol

  SQLiteConnection mydb;
  ^
  symbol:   class SQLiteConnection
  location: class SQLitePlugin.SQLiteDatabaseNDK
T:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:229: error: cannot find symbol
} catch (SQLiteException e) {
 ^
  symbol:   class SQLiteException
  location: class SQLitePlugin
T:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:374: error: cannot find symbol
mydb = new SQLiteConnection(dbFile);
   ^
  symbol:   class SQLiteConnection
  location: class SQLitePlugin.SQLiteDatabaseNDK
T:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:486: error: cannot find symbol
SQLiteStatement myStatement = mydb.prepare(query);
^
  symbol:   class SQLiteStatement
  location: class SQLitePlugin.SQLiteDatabaseNDK
T:\Coding\MyApp\platforms\android\src\io\liteglue\SQLitePlugin.java:531: error: strings in switch are not supported in -source 1.6
switch (myStatement.columnType(i)) {
                              ^
  (use -source 7 or higher to enable strings in switch)
Note: Some input files use or override a deprecated API.
 FAILED
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
6 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJava'.
> 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.

BUILD FAILED

Total time: 47.79 secs

T:\Coding\MyApp\platforms\android\cordova\node_modules\q\q.js:126
            throw e;
                  ^
Error code 1 for command: cmd with args: /s /c "T:\Coding\MyApp\platforms\android\gradlew cdvBuildDebug -b T:\Coding\MyApp\platforms\android\build.gradle -Dorg.gradle.daemon=true"
ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: cmd: Command failed with exit code 1

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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