Currently testing out Android Instant Apps using Android Studio 3.0 Canary 3 and I'm getting this error when I try to build the app and emulate it.
Any ways to fix it? (I'm making a multi-feature Instant App).
Error:
~/Documents/GitHub/AndroidInstantApp/android-topeka/topeka-ui/build/intermediates/manifests/full/feature/debug/AndroidManifest.xml:2
attribute 'split' in tag is not a valid split name
Error:com.android.builder.internal.aapt.AaptException: AAPT2 link
failed: Error:java.util.concurrent.ExecutionException:
com.android.builder.internal.aapt.AaptException: AAPT2 link failed:
Error:Execution failed for task
':topeka-ui:processDebugFeatureResources'.
Failed to execute aapt
I think we may have found a bug of this alpha release.
I solved the problem by removing the dash ("-") from the module name:
Apparently it is not well supported for split names.
The strange part is, both the codelabs and my project were initially working correctly with the dash.
Related
I have tried to call the library xlsx, since I want to save data in multiple-sheets excel files, but I got a Java-related error. Even when I run library(rJava) I have this error code:
Error: package or namespace load failed for ‘rJava’:
.onLoad failed in loadNamespace() for 'rJava', details:
call: inDL(x, as.logical(local), as.logical(now), ...)
error: unable to load shared object 'C:/Users/me/Documents/R/win-library/4.0/rJava/libs/x64/rJava.dll':
LoadLibrary failure: The specified module could not be found.
The solutions I have found online are quite old and none helped to solve the issue: I have tried to reinstall Java 64 bit on my OS (Windows 10-64bit), and the package rJava, I have tried to set Java home with Sys.setenv(JAVA_HOME="C:\Program Files\Java\jre1.8.0_271\") without success. I use R 64 bit.
Do you have any suggestions?
Finally, the solution reported here worked for me. The most important thing is to download the offline version of Java
I'm a beginner in Android studio, and I beg pardon for and writing errors. While trying an ecommerce app to install, I'm getting this error, however I tried searching web for the same, yet could not find it. Can you please help me what this error is about? Earlier this project used Session manager to authenticate, I tried to use Firebase when I faced this issue. Please post any related link.
10/01 13:04:25: Launching 'app' on Micromax Micromax Q391.
Installation did not succeed.
The application could not be installed.
List of apks: [0]
'D:\SearchLocally\SerchLocally\app\build\outputs\apk\debug\app-debug.apk'
Installation failed due to: ''pm install-create -r -t -S 9779378'
returns error 'Unknown failure: java.lang.UnsatisfiedLinkError: No
implementation found for java.lang.String
android.os.SystemProperties.native_get(java.lang.String) (tried
Java_android_os_SystemProperties_native_1get and
Java_android_os_SystemProperties_native_1get__Ljava_lang_String_2) at
android.os.SystemProperties.native_get(Native Method) at
android.os.SystemProperties.get(SystemProperties.java:52) at
android.os.Environment.getCanonicalPathOrNull(Environment.java:832) at
android.os.Environment.(Environment.java:78) at
android.os.Environment.getLegacyExternalStorageDirectory(Environment.java:419)
at android.os.Debug.(Debug.java:96) at
android.ddm.DdmHandleHello.handleHELO(DdmHandleHello.java:164) at
android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:91) at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug at
android.ddm.DdmHandleHello.handleFEAT(DdmHandleHello.java:176) at
android.ddm.DdmHandleHello.handleChunk(DdmHandleHello.java:93) at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)
java.lang.UnsatisfiedLinkError: android.os.Debug at
android.ddm.DdmHandleProfiling.handleMPRQ(DdmHandleProfiling.java:187)
at
android.ddm.DdmHandleProfiling.handleChunk(DdmHandleProfiling.java:88)
at
org.apache.harmony.dalvik.ddmc.DdmServer.dispatch(DdmServer.java:171)''
Retry
Disabling MIUI optimization from developed options will work:
Settings - Developer options - MIUI optimization
Disable it and it will ask to reboot the device, after that the app can be installed
i'm a beginner in android studio (first time). I have this problem after i created empty activity then run with real device (mobile phone).
I hope some one can help me. Thank you.
More information
My device run on android 5.1 and connect with usb
Android studio v. 3.0.1
่JDK v. 9.0.4
JRE v. 9.0.4
Original code (empty project template)
I got the following message in the console.
Error:java.lang.RuntimeException: Internal error when trying to read zip file 'C:\Users\Jimmy.gradle\caches\transforms-1\files-1.1\support-core-ui-26.1.0.aar\3ac945728978df452e7f8cdd66ea71d9\jars\classes.jar'.
Error:com.google.common.base.VerifyException
Error:Execution failed for task ':app:transformClassesWithDexBuilderForDebug'.
com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Internal error when trying to read zip file 'C:\Users\Jimmy.gradle\caches\transforms-1\files-1.1\support-core-ui-26.1.0.aar\3ac945728978df452e7f8cdd66ea71d9\jars\classes.jar'.
Attached Images
I'm currently developing an Android (API 21) app on Eclipse OEPE (Mars) using a 64-bit Win7. The SDK was downloaded and installed by Android Studio (with all the platform-tools and build-tools). I have had no trouble writing the app, but as soon as I try to debug it as described here (Step 6), I get the following error:
BUILD FAILED
{WorkspacePath}\HelloWorld\.main.android.1\bin\build.xml:3: The following error occurred while executing this line:
{WorkspacePath}\HelloWorld\.main.android.1\bin\build-set-globals.xml:67: Cannot find C:\AndroidSdk\tools\ant\build.xml imported from {WorkspacePath}\HelloWorld\.main.android.1\bin\build-set-globals.xml
Total time: 895 milliseconds
(I'm the one who replaced the path to the workspace with {WorkspacePath}).
I have no idea what's going on and couldn't find anything on internet; any suggestion?
EDIT: I forgot to mention it, but the thing that is bothering me the most is that there's no "ant" folder in {SDKPath}/tools
I have upgraded my Phonegap running on Windows 7 to the currently latest version to 3.3.0. I could create a project without any issue but when I try to add a platform say "android" an error occurs. Shown below is the error I get when I run "cordova platform add android" command on command promt on Windows 7. Please help.
E:\Dropbox\Development\Android\weatherlk>cordova platform add android
Creating android project...
C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\node_modules\q\
throw e;
^
Error: An error occured during creation of android sub-project.
C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modules\q\q.
throw e;
^
Error: An error occurred while listing Android targets
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\lib\check_
at _rejected (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at Promise.when (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\
at Promise.promise.promiseDispatch (C:\Users\Teshan\.cordova\lib\and
752:41)
at C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\node_modul
at flush (C:\Users\Teshan\.cordova\lib\android\cordova\3.3.0\bin\nod
at process._tickCallback (node.js:415:13)
at C:\Users\Teshan\AppData\Roaming\npm\node_modules\cordova\src\plat
at ChildProcess.exithandler (child_process.js:641:7)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
I had exactly this problem today. Turned out I had white space in the path variable for \android-sdk\tools (in windows 7 environment variables). Check the android batch file runs, ie type android in a command prompt in any directory, and also adb for the platform-tools path. A similar question is answered here < An error occured during creation of android sub-project >.
Here is a blog about installing it from start to finish with a little more detail than phonegap/cordova docs offer. A lot easier than piecing together the different stack questions: http://www.andrewsavory.com/blog/2013/2517