@renanvital wrote:
I am not able to generate apk for testing …
I think there has something to do with the gradle version.
Can someone help me … thanks!
ionic info
cli packages: (C:\Users\Cliente\AppData\Roaming\npm\node_modules) @ionic/cli-utils : 1.19.1 ionic (Ionic CLI) : 3.19.1 global packages: cordova (Cordova CLI) : 8.0.0 local packages: @ionic/app-scripts : 3.1.8 Cordova Platforms : android 7.0.0 browser 5.0.3 Ionic Framework : ionic-angular 3.9.2 System: Android SDK Tools : 26.1.1 Node : v6.11.4 npm : 3.10.10 OS : Windows 7 Environment Variables: ANDROID_HOME : C:\Users\Cliente\AppData\Local\Android\sdk Misc: backend : procordova run android --verbose
No scripts found for hook "before_run". No scripts found for hook "before_prepare". Checking config.xml and package.json for saved platforms that haven't been added to the project Config.xml and package.json platforms are the same. No pkg.json modification. Package.json and config.xml platforms are different. Updating config.xml with mo st current list of platforms. PlatformApi successfully found for platform android Android Studio project detected Checking config.xml for saved plugins that haven't been added to the project Checking for any plugins added to the project that have not been installed in an droid platform No differences found between plugins added to project and installed in android p latform. Continuing... Generating platform-specific config.xml from defaults for android at C:\Users\Cl iente\apps\blank\platforms\android\app\src\main\res\xml\config.xml Merging project's config.xml into platform-specific android config.xml Merging and updating files from [www, platforms\android\platform_www] to platfor ms\android\app\src\main\assets\www Wrote out android application name "MyApp" to C:\Users\Cliente\apps\blank\platfo rms\android\app\src\main\res\values\strings.xml android-versionCode not found in config.xml. Generating a code based on version in config.xml (0.0.1): 1 Wrote out Android package name "io.ionic.starter" to C:\Users\Cliente\apps\blank \platforms\android\app\src\main\java\io\ionic\starter\MainActivity.java Updating icons at platforms\android\app\src\main\res Updating splash screens at platforms\android\app\src\main\res This app does not have additional resource files defined Prepared android project successfully No scripts found for hook "after_prepare". ANDROID_HOME=C:\Users\Cliente\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_151 studio Subproject Path: CordovaLib Subproject Path: app Running command: cmd "/s /c "C:\Users\Cliente\apps\blank\platforms\android\gradl ew.bat cdvBuildDebug -b C:\Users\Cliente\apps\blank\platforms\android\build.grad le -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecat edNdk=true"" 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_1us2ldszhc80jv9utispagc0p.run(C:\Users\Cliente\apps\blank\platf orms\android\app\build.gradle:143) :CordovaLib:preBuild UP-TO-DATE :CordovaLib:preDebugBuild UP-TO-DATE :CordovaLib:compileDebugAidl UP-TO-DATE :CordovaLib:compileDebugRenderscript UP-TO-DATE :CordovaLib:checkDebugManifest UP-TO-DATE :CordovaLib:generateDebugBuildConfig UP-TO-DATE :CordovaLib:prepareLintJar UP-TO-DATE :CordovaLib:generateDebugResValues UP-TO-DATE :CordovaLib:generateDebugResources UP-TO-DATE :CordovaLib:packageDebugResources UP-TO-DATE :CordovaLib:platformAttrExtractor UP-TO-DATE :CordovaLib:processDebugManifest UP-TO-DATE :CordovaLib:processDebugResources UP-TO-DATE :CordovaLib:generateDebugSources UP-TO-DATE :CordovaLib:javaPreCompileDebug UP-TO-DATE :CordovaLib:compileDebugJavaWithJavac UP-TO-DATE :CordovaLib:processDebugJavaRes NO-SOURCE :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-T O-DATE :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:compileDebugAidl UP-TO-DATE :CordovaLib:packageDebugRenderscript NO-SOURCE :app:compileDebugRenderscript UP-TO-DATE :app:checkDebugManifest UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:prepareLintJar UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:createDebugCompatibleScreenManifests UP-TO-DATE :app:processDebugManifest UP-TO-DATE :app:splitsDiscoveryTaskDebug UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:javaPreCompileDebug UP-TO-DATE :app:compileDebugJavaWithJavacC:\Users\Cliente\apps\blank\platforms\android\app\ src\main\java\nl\xservices\plugins\SocialSharing.java:19: error: package org.apa che.http.util does not exist import org.apache.http.util.ByteArrayBuffer; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:25: error: package android.support.v4.app does not exist import android.support.v4.app.ActivityCompat; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:26: error: package android.support.v4.content d oes not exist import android.support.v4.content.ContextCompat; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\nl\xservices\plu gins\SocialSharing.java:420: error: cannot find symbol ByteArrayBuffer baf = new ByteArrayBuffer(5000); ^ symbol: class ByteArrayBuffer location: class SocialSharing C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\nl\xservices\plu gins\SocialSharing.java:420: error: cannot find symbol ByteArrayBuffer baf = new ByteArrayBuffer(5000); ^ symbol: class ByteArrayBuffer location: class SocialSharing C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:69: error: cannot find symbol ActivityCompat.requestPermissions( ^ symbol: variable ActivityCompat location: class SpeechRecognition C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:137: error: cannot find symbol if (PackageManager.PERMISSION_GRANTED != ContextCompat.checkSelfPermissi on(this.cordova.getActivity(), Manifest.permission.RECORD_AUDIO)) { ^ symbol: variable ContextCompat location: class SpeechRecognition FAILED 27 actionable tasks: 1 executed, 26 up-to-date Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 7 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app: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. * Get more help at https://help.gradle.org BUILD FAILED in 2s Command finished with error code 1: cmd /s /c "C:\Users\Cliente\apps\blank\platf orms\android\gradlew.bat cdvBuildDebug -b C:\Users\Cliente\apps\blank\platforms\ android\build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pa ndroid.useDeprecatedNdk=true" (node:6456) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 1): Error: cmd: Command failed with exit code 1 Error output: C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\nl\xservices\plu gins\SocialSharing.java:19: error: package org.apache.http.util does not exist import org.apache.http.util.ByteArrayBuffer; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:25: error: package android.support.v4.app does not exist import android.support.v4.app.ActivityCompat; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:26: error: package android.support.v4.content d oes not exist import android.support.v4.content.ContextCompat; ^ C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\nl\xservices\plu gins\SocialSharing.java:420: error: cannot find symbol ByteArrayBuffer baf = new ByteArrayBuffer(5000); ^ symbol: class ByteArrayBuffer location: class SocialSharing C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\nl\xservices\plu gins\SocialSharing.java:420: error: cannot find symbol ByteArrayBuffer baf = new ByteArrayBuffer(5000); ^ symbol: class ByteArrayBuffer location: class SocialSharing C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:69: error: cannot find symbol ActivityCompat.requestPermissions( ^ symbol: variable ActivityCompat location: class SpeechRecognition C:\Users\Cliente\apps\blank\platforms\android\app\src\main\java\org\apache\cordo va\speech\SpeechRecognition.java:137: error: cannot find symbol if (PackageManager.PERMISSION_GRANTED != ContextCompat.checkSelfPermissi on(this.cordova.getActivity(), Manifest.permission.RECORD_AUDIO)) { ^ symbol: variable ContextCompat location: class SpeechRecognition Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. 7 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app: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. * Get more help at https://help.gradle.org BUILD FAILED in 2s Picked up _JAVA_OPTIONS: -Xmx512M
Posts: 1
Participants: 1