I'm coming across problems uploading a native android app from the device/emulator to the MTW. The scenario is this:
User builds a mobile app using Android Studio and the CLI
Deploys the mobile app to the emulator or device
Tests the functionality and it works ok
Create a Test Workbench Project in eclipse
Launches the MTW Client on the emulator and connects to the Test Workbench Project
Uploads the application from the Android emulator to the Test Workbench
It is at this point that it fails and I get an error uploading it. it seems to be some sort of align problem again but I don't know how to solve it.
Now If I upload a hybrid Android app, then it works, so I know that my eclipse environment is configured ok (to a certain extent at least) as I got around the initial zipalign problem.
So my initial thoughts are
Maybe there is some additional configuration that I need to do to that is unclear to me
Maybe the apk file that I am using is invalid in some way and I need to do something special to be able to upload it
Note I played around with the zipalign option in the build.gradle file. but to no avail.
.
android {
compileSdkVersion 19
buildToolsVersion "19.1"
defaultConfig {
minSdkVersion 10
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
zipAlign true
}
}
}
...
The logs show the following
!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 1 0 2014-08-26 21:37:08.540
!MESSAGE CRRTWM6013I from component Android-BuildChain: configuration: {cache.dir=C:\Work\Worklight_v62\Test\.metadata\.plugins\com.ibm.rational.test.lt.models.behavior.moeb\cache, android.runtime.dir=C:\IBM\WorklightStudio_v62\eclipse\eclipse\plugins\com.ibm.rational.test.mobile.android.runtime_1.2.100.v20140603_1426, ibm.jdk.install.dir=C:\Program Files\Java\jdk1.7.0_25, android.sdk.install.dir=C:\Utils\Android\android-sdk, runtime.cache.dir=C:\Work\Worklight_v62\Test\.metadata\.plugins\com.ibm.rational.test.lt.models.behavior.moeb\builds\runtimes}
!ENTRY com.ibm.cic.licensing.common.util 4 0 2014-08-26 21:37:19.161
!MESSAGE LicenseCheck returned FALSE!
!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 4 0 2014-08-26 21:37:35.694
!MESSAGE CRRTWM6012E exception thrown from component Android-BuildChain while building from '0-com.example.ibmbankapp.app-1.apk'
!STACK 0
brut.androlib.AndrolibException: com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec$ProcessExecException: Cannot exec command: [C:\Utils\Android\ANDROI~1\build-tools\20.0.0\aapt.exe, p, --no-crunch, -F, C:\Users\mmalc\AppData\Local\Temp\APKTOOL6016720483897094701.tmp, -0, arsc, -I, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\cache\apktool\framework\1.apk, -S, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res, -M, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\AndroidManifest.xml]
Exit code: 1
Process output stream:
Process error stream:
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:327: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:368: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:382: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:389: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values-v14\styles.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:401: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:407: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:429: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:502: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:444)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:376)
at brut.androlib.Androlib.buildResources(Androlib.java:320)
at brut.androlib.Androlib.build(Androlib.java:237)
at brut.androlib.Androlib.build(Androlib.java:203)
at com.ibm.rational.test.mobile.android.buildchain.tools.build.BuildWrapper.build(BuildWrapper.java:213)
at com.ibm.rational.test.mobile.android.buildchain.AndroidBuildChain.build(AndroidBuildChain.java:289)
at com.ibm.rational.test.lt.models.behavior.moeb.utils.BuildChainManager$Build.run(BuildChainManager.java:198)
at java.lang.Thread.run(Unknown Source)
Caused by: com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec$ProcessExecException: Cannot exec command: [C:\Utils\Android\ANDROI~1\build-tools\20.0.0\aapt.exe, p, --no-crunch, -F, C:\Users\mmalc\AppData\Local\Temp\APKTOOL6016720483897094701.tmp, -0, arsc, -I, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\cache\apktool\framework\1.apk, -S, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res, -M, C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\AndroidManifest.xml]
Exit code: 1
Process output stream:
Process error stream:
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:327: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:368: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:382: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:389: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values-v14\styles.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:401: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base.DropDownItem'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:407: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:429: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Base'.
C:\Work\WORKLI~4\Test\METADA~1\PLUGIN~1\COMIBM~1.MOE\builds\C2278B~1\0-com.example.ibmbankapp.app-1\res\values\styles.xml:502: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.Light.Base'.
at com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec.exec(ProcessExec.java:102)
at com.ibm.rational.test.mobile.android.buildchain.utils.ProcessExec.exec(ProcessExec.java:77)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:442)
... 8 more
!ENTRY com.ibm.rational.test.lt.models.behavior.moeb 4 0 2014-08-26 21:37:35.704
!MESSAGE CRRTWM6010E exception thrown while building from '0-com.example.ibmbankapp.app-1.apk'
!STACK 0
java.lang.Error: Playback-ready package build/sign/align failed
at com.ibm.rational.test.mobile.android.buildchain.AndroidBuildChain.build(AndroidBuildChain.java:290)
at com.ibm.rational.test.lt.models.behavior.moeb.utils.BuildChainManager$Build.run(BuildChainManager.java:198)
at java.lang.Thread.run(Unknown Source)
I'm using WL v6.2.0.00-20140801-1709
MTWW v 8.5.100.v20131024_1533
I've also already looked at another post regarding the zipalign problem and not had any joy as I don't have Android API 20 - 22 installed
Appreciate any pointers.
This issue come from the new Android SDK release 23. Google has modified the location of the zipalign tool :-(
Here is the workaround:
copy android-sdk-dir/build-tools/version/zipalign[.exe] to android-sdk-dir/tools
Dominique
This Issue appeared with the latest build-tools.
Please refer to this answer :
https://stackoverflow.com/a/32517719/2633707
Related
I am using org.jsoup:jsoup:1.12.1:
Document doc = Jsoup.connect("https://example.com").get()
When I had tried JAVA: 8.0.232-open, 9.0.4-open, 11.0.5-open I received
javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching <domain> found.
exception.
Project is using Grails4 and it's not building with JAVA > 12, cause in case JAVA13+ it throws:
1 error (NOTE: Stack trace has been filtered. Use --verbose to see
entire trace.)
org.codehaus.groovy.control.MultipleCompilationErrorsException:
startup failed: General error during semantic analysis: Unsupported
class file major version 57
java.lang.IllegalArgumentException: Unsupported class file major
version 57
From what I have found it's issue with JAVA itself, not with jsoup: JSoup javax.net.ssl.SSLHandshakeException: No subject alternative DNS name matching <url> found
I have tried Gradle: 3.5.1 and 6.1-rc-2 but without success.
How to resolve it?
After i install #expo/vector-icons
i can't build my application again with this error appear.
*Where
Script 'C:\Users\Mostafa\SecurityEye\node_modules\react-native\react.gradle' line: 95
A problem occurred configuring project ':app'.
could not get unknown property 'mergeResourcesProvider' for object of type com.android.build.gradle.internal.api.ApplicationVariantImpl.
line 95:
variant.mergeResourcesProvider.get().dependsOn(currentBundleTask)
maybe you can update gradle version to 4.10.1 android buildtool to 3.3.0
I am trying to build a react native app with facebook login.
As facebook suggests I have created two resources string string/facebook_app_id and string/fb_login_protocol_scheme and include it in Manifest file.
But when I try to build app I get these errors
AAPT: error: resource string/facebook_app_id (aka package.name:string/facebook_app_id) not found.
AAPT: error: resource string/fb_login_protocol_scheme (aka package.name:string/fb_login_protocol_scheme) not found.
I'm migrating a ZF2 application to ZF3.
First I was getting the error:
Fatal error: Uncaught Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 202
Zend\ModuleManager\Listener\Exception\RuntimeException: Could not find a valid ServiceManager for RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-modulemanager/src/Listener/ServiceListener.php on line 202
Adding of 'Zend\Router' to the modules array in the application.config.php solved the issue. But now I'm getting another error:
Fatal error: Uncaught Zend\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name "Zend\Mvc\Router\Http\Segment" was not found in the plugin manager Zend\Router\RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php on line 131
Zend\ServiceManager\Exception\ServiceNotFoundException: A plugin by the name "Zend\Mvc\Router\Http\Segment" was not found in the plugin manager Zend\Router\RoutePluginManager in /var/www/work/path/to/project/vendor/zendframework/zend-servicemanager/src/AbstractPluginManager.php on line 131
What might cause this error and how to fix it?
Caused by Zend\Mvc\Router has been moved to Zend\Router, so just replace Zend\Mvc\Router\Http\Segment to Zend\Router\Http\Segment
I am working on a project, and everything was working fine. However, suddenly I am getting below error
[ERROR] :
[ERROR] : (C:\Users\user.name.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:189:18)
[ERROR] : (C:\Users\abdul.aleem.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:197:11)
[ERROR] : (C:\Users\abdul.aleem.appcelerator\install\5.0.2\package\node_modules\appc-cli-titanium\node_modules\alloy\node_modules\uglify-js\lib\parse.js:664:9)
[ERROR] : Alloy compiler failed
TRACE | titanium exited with exit code 1
[ERROR] Application Installer abnormal process termination. Process exit value was 1
I know I had mistakenly written something on JS file or XML file, and now I am unable to find the exact cause of the error. The studio is throwing to a general exception.
How to find the exact location or cause of the error?
I cannot reproduce this with the same 5.0.2 version:
[ERROR] : Error generating AST for "/Users/fokkezb/dev/studio/TestAlloy/app/controllers/index.js"
[ERROR] : Unexpected token punc «{», expected punc «(»
[ERROR] : line 1, column 17, position 17
[ERROR] : Alloy compiler failed
TRACE | titanium exited with exit code 1
If you figure out the cause, could you create a JIRA ticket with a reproducible test case and steps so we ca fix this?