在CLI上的Linux上gradle 1.10
./gradlew清洁
./gradlew assembleRelease
stdout中的错误...
Note: there were 2 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 5 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning: there were 106 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
:proguardRelease FAILED
:proguardRelease (Thread[main,5,main]) completed. Took 4.689 secs.
FAILURE: Build failed with an …Run Code Online (Sandbox Code Playgroud) 我调试了与版本2 player.js(0002/player.js)一起使用的css,并在下面找到了我想要从默认接收器中删除的RED Overlay的CSS.
来自player.css
#player[type="video"][state="idle"]:after {
content: "SAMPLE";
position: absolute;
left: 0;
right: 0;
top: 50%;
bottom: 0;
text-align: center;
font-size: 50px;
margin-top: -150px;
opacity: 0.1;
color: red;
}
Run Code Online (Sandbox Code Playgroud)
由于默认的player.js循环通过状态[IDLE PLAY BUFFER],显示红色透明覆盖,"SAMPLE".
当我玩自己的mp4时,我想摆脱这个功能.
所以,我删除了上面的违规css并且我托管了没有红色样本的新css文件.
我使用"Google Cast SDK"进入开发控制台,并将自定义样式更改为我托管的CSS文件的URL.
我等了4个小时.
我重新启动了chromecast设备.
我在设备的调试器控制台中手动重新加载窗口.
并且,我仍然看到带有红色SAMPLE的旧CSS.
我需要改变什么来摆脱与默认接收器一起使用的player.js上的CSS?
下面是我的Android应用程序在chromecast设备的调试器中加载的html.
<html><head>
<title>Cast Media Player</title>
<link rel="stylesheet" href="0002/player.css">
<script type="text/javascript" src="0002/player.js"></script><link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/gtv-videos-bucket/receivers/f742e4109ea711e3a5e20800200c9a66/style.css">
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/receiver/2.0.0/cast_receiver.js"></script>
<script type="text/javascript" src="//www.gstatic.com/cast/sdk/libs/mediaplayer/0.3.0/media_player.js"></script>
</head>
<body>
<div id="player" class="gcpa" type="video" state="playing"><div class="background"></div><div class="gcpb" style=""><video style="background-image: none;" src="http://....0685/fade0569-bd5b-4cc2-a05d-85cb24860c56-20140430101403.mp4"></video><div class="logo"></div><div class="gcpr"></div><div class="splash"></div><div class="watermark"></div><div class="gcpc"></div><div …Run Code Online (Sandbox Code Playgroud) --EDIT--由于模糊的build.gradle,我有太多版本的共享库浮动了...
./src/main/jniLibs/armeabi-v7a/libaudioboo-native.so
rob@ app$ rm ./src/main/libs/armeabi-v7a/libaudioboo-native.so
rob@ app$ rm ./src/main/obj/local/armeabi-v7a/libaudioboo-native.so
rob@ app$ rm ./src/main/jniLibs/armeabi-v7a/libaudioboo-native.so
Run Code Online (Sandbox Code Playgroud)
已解决的问题 - 将构建更改为以下内容仅使用./src/main/libs中的共享库
sourceSets {
main {
jni.srcDirs = [] /*disable automatic ndk-build call */
jniLibs.srcDir 'src/main/libs'
}
}
Run Code Online (Sandbox Code Playgroud)
在android5上打破了所以我通过为Android-studio(1.0)ndk build推文来解决它.我按照答案@holo的指示扫描了所有'findClass'的代码.注 - 在第34行更改了字符串常量
"fm.audioboo.jni.FLACStreamEncoder"; to "fm/audioboo/jni/FLACStreamEncoder";
Run Code Online (Sandbox Code Playgroud)
那并没有解决任何问题.
java代码调用一个函数,在该本机函数执行之前,看起来艺术框架本身就是在第二个arg中使用一个错误的char分隔符调用FindClass(_JNIEnv*,char const*).如果查看pastebin链接的第46-48行,它看起来就像调用本机函数一样.该框架只会抛出错误的包名称Findclass错误.请注意,本机函数的第一行是在运行时未到达的日志语句.
Java层......
public FLACStreamEncoder(String outfile, int sample_rate, int channels,
int bits_per_sample)
{
init(outfile, sample_rate, channels, bits_per_sample);
}
...
native private void init(String outfile, int sample_rate, int channels,
int bits_per_sample);
...
static {
System.loadLibrary("audioboo-native");
}
Run Code Online (Sandbox Code Playgroud)
CPP层...函数永远不会到达第一行日志stmt.
extern "C" { …Run Code Online (Sandbox Code Playgroud)